|
|
|
|
|
by petre
3308 days ago
|
|
> Languages often use '+' for both numeric addition and string concatenation Perl uses . or ~ depending on which version you are using. It also uses braces for code blocks and postfixed ifs which prevents errors like: if (x)
y
z
Instead of: if (x)
y
z
It prides itself to being close to natural language yet still uses braces. |
|
It's a pet peeve of mine that languages have promoted + for addition and string concatenation when concatenation and addition are distinct concepts that don't really share a lot in common beyond the surface. To me, in new languages, it signals that someone likely hasn't thought through that issue very clearly, or has and just doesn't care about consistency (which I think it important in a language). Python at least has the excuse of age (even if it's not all that old compared to many others).