4 ms·
>Yeah it sucks, but it's not really the language's fault. Imagine a language were assignments were only done via := and comparisons with = or ==. A programmer
by macspoofing 12y ago
>Yeah it sucks, but it's not really the language's fault.
Imagine a language were assignments were only done via := and comparisons with = or ==. A programmer would never encounter this error.
- david-given 12y agoAda does precisely this. (It also doesn't support assignment inside expressions at all.) Modern Ada's a thoroughly nice language; I did a writeup: https://cowlark.com/2014-04-27-ada https://cowlark.com/2014-04-27-ada