News for hackers. Stuff that matters.
Re:Why Does “=” Mean Assignment? by DonaldPShimoda on Wednesday April 11, 2018 @02:40AM (#16808615)
Yeah but this introduced an easy path for errors. You could mean to write `==` and instead write `=` and it'll work fine in C in practically all locations (even as conditions of if-statements). Using `:=` could have likely alleviated this error to a noticeable degree, if not entirely.
Re:Why Does “=” Mean Assignment? by z3t4 on Wednesday April 11, 2018 @02:19PM (#16813880)
Chefs rather use a sharp knife then a blunt one, even if they cut themselves from time to time. If safety is a priority, there are special designed languages like Ada that use :=
Re:Why Does “=” Mean Assignment? by DonaldPShimoda on Monday April 16, 2018 @01:46PM (#16851050)
But... sharp knives are safer than blunt knives, specifically because they reduce the likelihood of being cut. That's why they're preferred.

I see your point, though. I was just bringing up an alternative consideration in the debate regarding equality.