Re:Line length in programming
by viraptor on Monday February 24, 2014 @06:31AM
(#7290227)
Or python if you're already in a function in a function in a class (so 68 chars left). If you also standardised on importing modules, not classes things can get silly. My favourite counter-example to the 80 char limit was a line in openstack which was:
The way applied to fit it without forced line breaking?
(yes, actually using first letters of words) Because yeah... that makes things simpler than just crossing the limit in that place.
[ Parent
| on HN ]
In perl I'd just write -
return $some_loaded_thing->fairly_descriptive_but_necessarily_long_name(
$not_very_long_argument
);
Surely python has something approximating an equivalent?Come on, you can get rid of the return statement if it is the last line in a subroutine.