Every story and comment from the Hacker News API, in a layout borrowed from 2001.
A comment on Z – A dynamic functional programming language that compiles to JavaScript. Parent comment
++ is for concatenation.
+ is for arithmetic.
Coercion or not, it's always puzzled me when languages used the same symbol.
I guess they're both associative and have identity values, but that's about it. One is commutative, the other is not.
* makes about as much sense for concatenation as +.
There are no comments on this comment yet.
++ is for concatenation.
+ is for arithmetic.
Coercion or not, it's always puzzled me when languages used the same symbol.
I guess they're both associative and have identity values, but that's about it. One is commutative, the other is not.
* makes about as much sense for concatenation as +.