Parentheses (as after "print")
MRAB
python at mrabarnett.plus.com
Tue Sep 26 23:34:45 EDT 2017
On 2017-09-27 03:48, Stefan Ram wrote:
> Steve D'Aprano <steve+python at pearwood.info> writes:
>>"Do What I Mean" (DWIM) programming is a terrible idea.
>
> It's an anti-pattern, when one expects the implementation
> to follow different and contradicting rules and then
> somehow guess what was in the mind of the programmer.
>
> But it's a pattern when it means to strip the language
> of useless boilerplate and still following consistent
> and simple rules. That was what made Python great.
>
Following the aphorism "Everything should be made as simple as possible,
but not simpler", removing 'def' and ':' is probably taking it a bit too
far.
More information about the Python-list
mailing list