News for hackers. Stuff that matters.
Re:More Good Programming Quotes (2016) by z1mm32m4n on Saturday July 22, 2017 @02:59PM (#14828733)
That's not true. When the language is lazy, you can't give a different type to one expression that's lazy and one expression that's strict. You can write hacks into the language that tell the compiler to evaluate certain expressions strictly, but you can't capture this in the type system when the language is lazy by default. On the other hand, this is perfectly possible in a strict language.
Re:More Good Programming Quotes (2016) by tome on Saturday July 22, 2017 @04:43PM (#14829269)
Firstly, that falls under my "at least to the degree needed to provide an answer to my question" rider. Secondly, no you can't type the values but you can type the consumers of the values, i.e. the functions: http://h2.jaguarpaw.co.uk/posts/strictness-in-types/
Re:More Good Programming Quotes (2016) by z1mm32m4n on Saturday July 22, 2017 @05:30PM (#14829491)
Ah, didn't realize the original question was limited to comments on dynamic typing. Regardless, that's a clever article, and an interesting tradeoff.