Hacker News new | ask | show | jobs
by baq 2079 days ago
i'm actually asking for something like this to be implemented on a language level, but if the type system is ergonomic enough, then i'd be mostly fine.

most numbers i deal with in my code have units somewhere. mistakes happen. i don't want to choose from multiple unique approaches, i need the ecosystem to standardize on one solution. see also the async task executor problem in other languages.

1 comments

So tell me if C/C++ or Kotlin do that.
i'd love them do that ergonomically and successfully. it'd certainly add a point for either in my book. that's besides the point, though.