Perhaps ++, and just use += 1 for incrementing. Rust already doesn't have an increment operator, and my JavaScript linter forbids it.
If it didn’t cause problems (ones I can think of in seconds: it complicates parsing, mathematicians will think it signals multiplication, and it makes it hard to insert spaces), using a single space for concatenation would make sense to me.
(Aside: C (or the C preprocessor?) is the only piece of software that I know that supports that , but only for string literals)
Re:Not Growing a Language
by lifthrasiir on Saturday April 03, 2021 @06:01PM
(#26685129)
As a binary operator `~` seems pretty unambiguous.
Yes, my vote for languages which are running out of glyphs would be `~~` actually.
Rather than using context to differentiate bitwise NOT from concatenation, just rule that ~~ is always concatenation. What you lose is just "NOT NOT", which (without this operator) is legal but pointless.
Moving deeper into Unicode is probably not the answer. Although, if a language needed a concatenate symbol, ⊞ (Squared Plus) might be a good choice. It's not used for much else.