![]() |
|
Problems? Is your data what you think it is? | |
PerlMonks |
Re^3: IO::Lambda: call for participationby xdg (Monsignor) |
on Jan 16, 2009 at 11:27 UTC ( #736802=note: print w/replies, xml ) | Need Help?? |
In that process I realized that if you indent normally, then after any complex sequence of events you are indented off of the right hand side! And what, exactly, does that indentation tell you? Basically that this happens before that happens before the other thing. Nesting of braces is carrying sequencing information, which we normally don't bother indenting at all. Well, rjbs got me converted to 2-space indents, so indentation is less of a beast to me. ;-) On the serious side, I think as long as this is used for a linear execution sequence, what you say is true. And I think all the examples are pretty linear. But if you ever do multiple predicates at the same level, I would suspect that lack of indentation would make following the execution sequence a bit challenging. My point is not that it can't be understood, but that one has to actually learn the library first and grok how it works before the code is "skimmable". That's an adoption barrier and probably makes maintenance in a larger team setting problematic. -xdg Code written by xdg and posted on PerlMonks is public domain. It is provided as is with no warranties, express or implied, of any kind. Posted code may not have been tested. Use of posted code is at your own risk.
In Section
Meditations
|
|