On Fri, Feb 12, 2021, at 02:23, Paul Sokolovsky wrote: > > Great to hear there's no desire to stray away from JavaScript just for > > the purpose of being different. > > ... And on the 2nd thought, that won't work. The reason it works in JS > is that it doesn't have tuples. In Python, "(a, b) => (1, 2)" means > "compare a tuple for greater-or-equal".
Nope. greater-or-equal is >=, not =>. And Javascript may not have tuples, but it does have the comma operator. > But fear not, we can steal "lambda operator" from Haskell: > > \(a, b): (1, 2) That's another option [and might be easier to parse], but I think it's less readable. _______________________________________________ Python-ideas mailing list -- [email protected] To unsubscribe send an email to [email protected] https://mail.python.org/mailman3/lists/python-ideas.python.org/ Message archived at https://mail.python.org/archives/list/[email protected]/message/H7PKBX2AAAXD4NG6EN7MIOUCP47V6UDH/ Code of Conduct: http://python.org/psf/codeofconduct/
