News for hackers. Stuff that matters.
Re:Introduction to the Pony programming language by abritinthebay on Thursday May 31, 2018 @02:47PM (#17198940)
Right, though there’s nothing intrinsically better about throwing an error - it’s just the idiom programmers are more familiar with.

If it’s raised and documented well there’s no reason it wouldn’t work as undefined (could throw type errors on usage after that for example).

Re:Introduction to the Pony programming language by pron on Thursday May 31, 2018 @04:01PM (#17199670)
> Right, though there’s nothing intrinsically better about throwing an error - it’s just the idiom programmers are more familiar with.

Well, it can be argued that physics dictates an error is intrinsically better than 0, and that programs care about physics at least as much as about mathematics.