3 ms·
In addition to the other answers, I bet it's easier for a CFG to parse knowing that "->" can't also be "negate and greater than" (since negation is only a prefi
by kodablah 11y ago
In addition to the other answers, I bet it's easier for a CFG to parse knowing that "->" can't also be "negate and greater than" (since negation is only a prefix op) whereas "=>" can easily be a fat arrow or greater-than-or-equal.
- serge2k 11y agoWhy would that be any harder? The tokens are different.
- kodablah 11y agoTrue, Java does not support => as an alternative for >= so the ambiguity does not exist. It was just a guess, but since it was probably not right, I decided to dig. This mail post[1] explains that the extra equals sign becomes a bit annoying w/ other equal signs in the same expression. 1 - http://mail.openjdk.java.net/pipermail/lambda-dev/2011-September/004021.html http://mail.openjdk.java.net/pipermail/lambda-dev/2011-Septe...