Y
Hacker News
new
|
ask
|
show
|
jobs
by
darrenf
935 days ago
Of course in Perl, a language not exactly immune from "syntax tricks", `and` doesn't always behave the same as `&&` :)
$ perl -E 'say 1,2,3,4 and 5; say 1,2,3,4 && 5' 1234 1235
1 comments
tyingq
935 days ago
Not defending it as sensible, but that difference in precedence is deliberate...not an oversight or side effect.
link