Your skill will accomplish what the force of many cannot |
|
PerlMonks |
comment on |
( [id://3333]=superdoc: print w/replies, xml ) | Need Help?? |
Terminology is not easy if it involves history and parallels to other (normative) languages.
see also https://en.wikipedia.org/wiki/Conditional_operator
The Conditional operator is supported in many programming languages. This term usually refers to ?: as in C, C++, C#, Python, and JavaScript. When Perl was born, C-programmers where one of the main target groups. But as you see "Java" is doing it like you suggested. And in Perl it's not only that
As I said, both are implemented with the same OP-Code.
editAt the same time we want documentation to stay concise, otherwise it's considered "too complicated" I think adding an extra section "Control flow in conditional operators" with these deeper informations and linking to it from ?: and && or || might solve the issue.
Cheers Rolf In reply to Re^4: Situation where warning "Found = in conditional, should be" seems obsolete (documentation - C terminology)
by LanX
|
|