Why not allow empty code blocks?
Rustom Mody
rustompmody at gmail.com
Sat Jul 30 07:39:26 EDT 2016
On Saturday, July 30, 2016 at 4:56:01 PM UTC+5:30, Chris Angelico wrote:
> On Sat, Jul 30, 2016 at 8:15 PM, BartC wrote:
> > Anyway, if you're going to talk about annoying things forced upon you by the
> > language, what about:
> >
> > "()" in "print (x)" for Python 3
>
> Why are you singling out print? It's just a function like any other.
> Are you complaining about the way function calls need parentheses?
Its a function… ok.
Its ‘just’ a function… Arguable
For example:
- Prior Art: Its builtin and special in Fortran, Pascal, Basic
- More immediate : It was a special in python2
- Poorer error catching: What was a straight syntax error is now a lint-catch (at best)
[print (x) for x in range(20)]
More information about the Python-list
mailing list