| rindolf | integral: I was talking to ofer0. |
| peterS | threat2: well, you can use 'and' and 'or' operators to similar effect |
| rindolf | integral: there's also && || |
| ides | threat2: well you could do put the whole if() {} else {} on one line, but that's not recommended :) |
| integral | rindolf: Pardon? You said "< rindolf> integral: what's waffling?" |
| Khisanth | sh3mh4mf0r4sh: ran into that problem a few weeks ago, forgot what the problem was but reading the source of the tests made it somewhat obvious |
| threat2 | ides: haha |
| rindolf | integral: you said "Rindolf: you're waffling again." |
| integral | Quite *Clearly* that was "talking to [integral]" |
| rindolf | integral: well, forge it. |
| mauke | (FALSE, TRUE)[!!(EXPRESSION)] |
| rindolf | mauke: heh. mauke++ Obfu-Perl. |
| ofer0 | mauke, nice one !! |
| threat2 | mauke: wow mauke: that is so illegible :) |
| rindolf | There's also this [$a =>$b]->[$a <= $b] threat2: don't use it. |
| ofer0 | rindolf, where's the else ? |
| threat2 | rindolf: ok |
| rindolf | ofer0: => is a comma. |
| peterS | (TRUE,FALSE)[!(EXPR)] is so much more readable than (FALSE,TRUE)[!!(EXPR)] |
| action | nanonyme thinks foo ? bar : baz isn't nice since some peope have the tendency to chain it. it isn't very readable if you have do a long elseif structure with it :/ |
| nanonyme | thinks foo ? bar : baz isn't nice since some peope have the tendency to chain it. it isn't very readable if you have do a long elseif structure with it :/ |
| mauke | of course |
| threat2 | peterS: yeah |
| rindolf | It's from effective Perl programming. |
| threat2 | peterS: that is insane though :) |
| peterS | yes |
| integral | nanonyme: the chaining is perfectly clear if you split it over lines clearly |
| perlygatekeeper | extintor: force install XXX |
| rindolf | threat2: I hope you're not flabbagasted by the "There's more than one wrong way to do it." here. |
| threat2 | peterS: so that makes an array, then selects the element depending on true (1) or false (0) ? isn't making an array inefficient? |
| rindolf | "Perl 6 - There are too many ways to do it" -- Offer Kaye |
| action | somian returns from breakfast |
| somian | returns from breakfast |
| threat2 | peterS: compared with a if else blockC? |
| extintor | perlygatekeeper: thank you, will try it :) |
| rindolf | threat2: don't overuse ? : though. Instead extract methods or functions. |
| extintor | seemed a bit harsch :) |
| peterS | threat2: the efficiency I do not know about, because perl _does_ optimize the code as it compiles it. but it is a stupid way to express the concept, nevertheless. |