in reply to Re^2: Clever vs. Readable
in thread Clever vs. Readable

I find $a < $b ? $a : $b clearer than min ($a, $b). The former in unambiguous, the latter uses an ambiguous abbreviation. It's likely to return the minimum of both values, but perhaps it returns $a - $b, or (-$a, -$b). There's no doubt in $a < $b ? $a : $b, but there's some doubt in min ($a, $b).

Replies are listed 'Best First'.
Re^4: Clever vs. Readable
by GrandFather (Saint) on Aug 09, 2008 at 22:36 UTC

    Do you have similar trouble with if, for, map, ...? Perhaps you should be using APL?


    Perl reduces RSI - it saves typing
    A reply falls below the community's threshold of quality. You may see it by logging in.