Better HN
top
new
best
ask
show
jobs
Log in
Sign up
Better HN
Comment
by
retrocryptid
· 3y ago · 0 comments
Except when it's not, like in perl.
Comments
[–]
balfebs
3y ago
Not sure what you mean, but ternaries are right-associative in Perl just like most other languages. PHP is the odd one out.
[–]
retrocryptid
OP
3y ago
Except when they're not.
[–]
User23
3y ago
And when is that? The docs just say it's right associative[1]. And while it's been a long time since I've written any nontrivial Perl, I don't remember ever having ?: be left associative.
[1]
https://perldoc.perl.org/perlop