in reply to Re^2: Clever vs. Readable
in thread Clever vs. Readable
The Schwarzian transform is a standard and widely used Perl idiom. This "min" example is neither of those things. You can't really compare them.
While Perl programmers do need to understand TIMTOWTDI, they also need to understand that some of those ways are rarely appropriate. This is indeed a great example to teach them that with -- precisely because it's so unreadable. It's a great example of OWTDI that IMO few experienced programmers would seriously consider for use in production code.
(FWIW, IIRC PBP has nothing against the ST but recommends that it be preceded by a comment identifying the construct.)
|
---|