Toot

Written by David Chisnall (Now with 50% more sarcasm!) on 2025-01-17 at 11:52

@ltratt I am increasingly of the opinion that a unary negation operator is a bad idea. The number of times I've written something like x = -x is so small that changing it to x = 0 - x is no hardship (and, the last time I wrote it, I actually did write it like that because it was clearer). Removing the unary negation operator would make that an unambiguous parse because -1 is a valid number literal, whereas - {expression} is not a valid expression. Similarly, x-1 is unambiguous (x {-1} is not valid).

=> More informations about this toot | View the thread | More toots from david_chisnall@infosec.exchange

Mentions

=> View ltratt@mastodon.social profile

Tags

Proxy Information
Original URL
gemini://mastogem.picasoft.net/toot/113843551736132909
Status Code
Success (20)
Meta
text/gemini
Capsule Response Time
225.827305 milliseconds
Gemini-to-HTML Time
0.809511 milliseconds

This content has been proxied by September (3851b).