HackerTrans
TopNewTrendsCommentsPastAskShowJobs

bluepnume

no profile record

Submissions

TypeScript's number type is a lie

bluepnume.medium.com
4 points·by bluepnume·vor 2 Monaten·6 comments

comments

bluepnume
·letzten Monat·discuss
[dead]
bluepnume
·letzten Monat·discuss
True enough. Although personally I prefer to just use regular functions rather than big inheritance chains.
bluepnume
·vor 2 Monaten·discuss
Probably if nothing else, impossible to have it perform well without static typing?
bluepnume
·vor 2 Monaten·discuss
In most languages you could probably solve this problem with a class. But wrapping all your numbers in a class with runtime consequences, just for a bit of extra type safety, feels quite extreme.
bluepnume
·vor 7 Jahren·discuss
Vouching for Ty. Been working with him on brainblocks.io for the last few years, the guy is a solid engineer, leader, and a fast learner. Had a fantastic experience working with him!