News for hackers. Stuff that matters.
Re:The memory safety problem isn't bad coders by scarface74 on Tuesday February 12, 2019 @08:54PM (#19149659)
You also included information about “constraints” like is it a positive or negative number and string length. That wouldn’t be encoded in the type. Why would I go look up the types either way? I’m using a strongly typed language, the IDE would tell me that anyway. While I am writing code, I see a red dot showing me immediately if I’m using the type incorrectly. Any assumptions that were incorrect, I would get immediate feedback.
Re:The memory safety problem isn't bad coders by gmueckl on Tuesday February 12, 2019 @10:34PM (#19150148)
Not necessarily. Is Age unsigned or not? This constrains the possible range of values. In other contexts, there is a lot more information inferred by the integer type used.