(no title)
fr0sty | 3 years ago
appending units to identifiers helps, but it relies on a developer's eyeballs to spot any errors. It would be infinitely preferable if the type system would simply enforce this for you and developers not have to expend cycles reasoning about this stuff themselves.
bornfreddy|3 years ago
Static typing is great, of course, I just don't agree that this can't be solved to almost the same level with languages with dynamic typing.
epgui|3 years ago
JohnBooty|3 years ago
I mean, as a coder, I'm going to have to be cognizant of the type anyway, even if we're doing `launch_rocket(distance:)` in a strongly typed language where `distance` is something of type `RocketLaunchDistance` or whatever.
I'm not arguing against static/strong typing in general or anything. Definitely lots of times when it is the clearly superior choice.