This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author gvanrossum
Recipients Ramchandra Apte, ezio.melotti, gvanrossum, ncoghlan, peter.otten, pitrou, serhiy.storchaka
Date 2013-08-20.15:17:00
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1377011820.47.0.920721742192.issue18788@psf.upfronthosting.co.za>
In-reply-to
Content
Well aren't there other languages (Ruby, Coffeescript) that have the same syntax?  How do they do it?  (Haskell does it too, but I don't think we can learn from it -- but in Ruby and IIRC Coffeescsript it is syntactic sugar for a regular call.)

Heck, even Python's predecessor, ABC, used "f x" to mean "f(x)".  It solved "a b + c" by giving function call binding the *tightest* possible priority though, interpreting it as (a b) + c, and hence (a(b)) + c", which would be no good for Nick's hope that "print x+1, y" can be made to mean print(x+1, y) -- ABC would interpret it as "(print(x)) + 1, y".

Still, I'd like to hear about how Ruby/Coffee solve this.
History
Date User Action Args
2013-08-20 15:17:00gvanrossumsetrecipients: + gvanrossum, ncoghlan, peter.otten, pitrou, ezio.melotti, Ramchandra Apte, serhiy.storchaka
2013-08-20 15:17:00gvanrossumsetmessageid: <1377011820.47.0.920721742192.issue18788@psf.upfronthosting.co.za>
2013-08-20 15:17:00gvanrossumlinkissue18788 messages
2013-08-20 15:17:00gvanrossumcreate