Path: csiph.com!v102.xanadu-bbs.net!xanadu-bbs.net!nntp.club.cc.cmu.edu!feeder.erje.net!eu.feeder.erje.net!newsfeed.fsmpi.rwth-aachen.de!newsfeed.straub-nv.de!news-1.dfn.de!news.dfn.de!fu-berlin.de!uni-berlin.de!individual.net!not-for-mail From: Gregory Ewing Newsgroups: comp.lang.python Subject: Re: lambdak: multi-line lambda implementation in native Python Date: Sun, 18 Jan 2015 10:56:07 +1300 Lines: 15 Message-ID: References: <3d8068b3-7b63-43c0-bbf2-6111b2c73aa4@googlegroups.com> <87zj9kb2j0.fsf@elektro.pacujo.net> <54B86CF8.7040602@gmail.com> <54ba39e0$0$13008$c3e8da3$5496439d@news.astraweb.com> Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Trace: individual.net QQ18htvIInMUy1MM+oT/agHP5VwbXL1+mwaLqIxGSLuR7GiynC Cancel-Lock: sha1:mKwBBR/xdh5EgNt5Q8BK03K1yQg= User-Agent: Mozilla Thunderbird 1.0.5 (Macintosh/20050711) X-Accept-Language: en-us, en In-Reply-To: Xref: csiph.com comp.lang.python:83953 Chris Angelico wrote: > Every once in a while, someone looks at Py2's print statement and > Py3's print function and says, "why not allow function calls without > parentheses". This right here is why not. There's also the fact that the parens are needed to distinguish between calling a function and using the function itself as a value. Ruby doesn't have that problem because it doesn't have functions, only methods, and the only thing you can do with a method in Ruby is call it. -- Greg