4 ms·
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
by DonaldPShimoda 9y ago
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.
- z3t4 9y agoChefs 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 :=
- DonaldPShimoda 9y agoBut... 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.