Hacker News new | ask | show | jobs
by macspoofing 4123 days 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.

1 comments

Ada 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