News for hackers. Stuff that matters.
Re:Giving Ada a Chance by edflsafoiewq on Tuesday March 02, 2021 @06:40PM (#26322782)
If I have two OperatingTemps, can I add them? What is the type of the sum?
Re:Giving Ada a Chance by Jtsummers on Tuesday March 02, 2021 @07:01PM (#26322986)
Yes and it would be the same type but there is a risk of overflow (and underflow with subtraction) which could result in a runtime exception (same as the risk with conventional integers). You’d want to include a guard that prevented those results.