|
|
|
|
|
by Nadya
3919 days ago
|
|
>Admittedly '+' over '&' is either style or hard-core "the operation is different, therefore we need a different symbol choice The former more than the latter. The operation is different therefore we need a different symbol choice - and & also makes as much sense stylistically as + does. "string1" and "string2", when read, makes sense. & is different from the conditional && like piping | is different from the conditional or || >Your example worries me. Personally I would not design a language like that. Neither would I, but I like to think it was part of "made in 10 days" that allowed it to stick around. |
|
Of course, in languages where & and | are already in use for bitwise operations on ints (etc.), using & for string concatenation would be a different form of the same clash as using + is.