Wilfred Hughes on Nostr: I'm adding a += operator to my programming language, because writing `x = x + 1` is ...
I'm adding a += operator to my programming language, because writing `x = x + 1` is tedious.
This opens the tricky design question of which operators should support this. Is += and -= sufficient, or do you expect things like >>= and **= to be available?
Published at
2024-10-05 21:20:00Event JSON
{
"id": "0b6aff156f87c56646e882b623d72b6d3b89f83f1fa53186a2f5849817517795",
"pubkey": "27c7ddcdba1d8cc847191c23aa2bf54f085cdedb6a6d7e5e460e6c8b59798786",
"created_at": 1728163200,
"kind": 1,
"tags": [
[
"proxy",
"https://mastodon.social/users/wilfredh/statuses/113256903479929403",
"activitypub"
]
],
"content": "I'm adding a += operator to my programming language, because writing `x = x + 1` is tedious.\n\nThis opens the tricky design question of which operators should support this. Is += and -= sufficient, or do you expect things like \u003e\u003e= and **= to be available?",
"sig": "6add3fe47f7be9f07f05e9080661b312e6e604c389982f4465dce0ef73f765b197f23e80604f2ac89f884d578e69df8fa851ff06009d655cf6695abc6bad1890"
}