Y
Hacker News
new
|
ask
|
show
|
jobs
by
mst
4499 days ago
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?
2 comments
collyw
4499 days ago
Come on, you can get rid of the return statement if it is the last line in a subroutine.
link
viraptor
4499 days ago
sorry, it was the return itself that was making it too long already. Basically assigning it locally took just exactly the number of characters, return was sticking out by one or two.
link