![]() |
|
P is for Practical | |
PerlMonks |
comment on |
( #3333=superdoc: print w/replies, xml ) | Need Help?? |
I think some of the reason coders sometimes seek get things done in a single line is the resemblance of perl to natural language. Larry's roots as a linguist are reflected in the language he built.
Constructs like resemble how we talk, rather than the more formal Somehow, opening and closing a block seems... burdensome. Burdensome not due to typing an extra character or two, but burdensome because the block and whitespace seem to make too big of a deal about something small, which at a subconscious level causes mild dissonance and slows down the brain. My two cents. LATER UPDATE I find myself trying to write code like this which feels more natural than opening a block (my dissonance theory) Similar is the use of $_ to mean "this" or "that" in natural language. All of these shortcut constructs are quicker and more like natural language -- and more difficult for someone entering the conversation late. In reply to Re: All in one
by rkg
|
|