8 ms·
> &+, &-, &. They will perform additions, subtraction and multiplication with wrapping It's definitely good that languages are adding this but it's a shame the
by IshKebab 8y ago
> &+, &-, &. They will perform additions, subtraction and multiplication with wrapping
It's definitely good that languages are adding this but it's a shame they didn't go for %+, %- and %. Some other language (I forget which) uses those and they are a lot more obvious in my opinion (because % means modulo pretty much everywhere and it is essentially a modulo operation).
- cytzol 8y agoI haven’t used Crystal, but wouldn’t that cause some parsing ambiguities? `a %- b` would clash with `a % -b`.