News for hackers. Stuff that matters.
Re:Not Growing a Language by Animats on Saturday April 03, 2021 @05:10PM (#26684777)
What to use for concatenation is a problem. PL/1 used "|", which was originally drawn with a break in the middle. But C took that over as "or", and that's now the accepted standard. ".." is accepted as a range operator now.

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.

Re:Not Growing a Language by nicoburns on Saturday April 03, 2021 @06:16PM (#26685235)
Perhaps ++, and just use += 1 for incrementing. Rust already doesn't have an increment operator, and my JavaScript linter forbids it.
Re:Not Growing a Language by Someone on Saturday April 03, 2021 @07:00PM (#26685501)
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.
Re:Not Growing a Language by samatman on Saturday April 03, 2021 @10:13PM (#26686389)
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.