Is there an easy way to control indents in Python
steve+comp.lang.python at pearwood.info
Sat Oct 18 12:53:04 CEST 2014
Simon Kennedy wrote:
> On Wednesday, 15 October 2014 20:31:15 UTC+1, Ian wrote:
>> I agree. I very rarely use blank lines inside functions. As I see it,
>> if you feel you need a blank line for separation within a function,
>> that's an indication your function is overly complex and should be
>> broken up.
> Whereas I feel that if I wanted to write code which looked like that I'd
> have learnt/learned Perl ;-)
I'm curious what aspect of idiomatic Perl code you are referring to. When
people talk about Perl code dismissively, I normally think of three things:
- excessively long one-liners;
- excessive use of symbols and sigils ("line noise");
- "More Than One [Thousand] Ways To Do It"
Are you suggesting that Perl functions tend to be too small? What do you
consider "too small"?
More information about the Python-list