First, I'd like to note that people above are absolutely
correct; it was incredibly stupid from me not to realize
the power of short-circuit ||. Well, to be exact, I did
consider some sort of short-circuit tricks but for some
reason I couldn't figure that out.
As for you point, I don't agree. Operators are generally
better read than functions for two-way operations, at least
for english speakers, don't you think? Saying "implies A to B"
when you mean "A implies B" is just plain weird, and if you
disagree, replace word 'implies' with 'and'; they're both
binary operators. "and(A,B)" doesn't sound that good, does
it?
Besides, as of perl5-something, => forces left side to be
string. Hmm. I wonder if that does any harm, though... I
can't bother go experimenting with that.
...
Besides, as I said, it was minor issue, don't confuse me for
princepawn reborn for talking about perl core when I'm barely
an Adept :I I just still think that implication operator
would look neater than function call - where needed; it might
not be needed.
As for xor precedence, my point holds, "xor" operator has
so cumbersomely low precedence that I have to be throwing
parenthese (sp?) here and there not to break something. Not
nice.
-Kaatunut
Posts are HTML formatted. Put <p> </p> tags around your paragraphs. Put <code> </code> tags around your code and data!
Titles consisting of a single word are discouraged, and in most cases are disallowed outright.
Read Where should I post X? if you're not absolutely sure you're posting in the right place.
Please read these before you post! —
Posts may use any of the Perl Monks Approved HTML tags:
- a, abbr, b, big, blockquote, br, caption, center, col, colgroup, dd, del, details, div, dl, dt, em, font, h1, h2, h3, h4, h5, h6, hr, i, ins, li, ol, p, pre, readmore, small, span, spoiler, strike, strong, sub, summary, sup, table, tbody, td, tfoot, th, thead, tr, tt, u, ul, wbr
You may need to use entities for some characters, as follows. (Exception: Within code tags, you can put the characters literally.)
| |
For: |
|
Use: |
| & | | & |
| < | | < |
| > | | > |
| [ | | [ |
| ] | | ] |
Link using PerlMonks shortcuts! What shortcuts can I use for linking?
See Writeup Formatting Tips and other pages linked from there for more info.