def is a much more readable alternative, which will be more familiar to
newcomers. The expression/block ambiguity can be resolved using different
token instead of colon (perhaps := or an arrow).
I can't understand the reaching for the Greek letter - it is a
computer-science specific term with no intuitive meaning.
On Thu, Jul 14, 2016 at 4:49 PM firstname.lastname@example.org wrote:
Send Python-ideas mailing list submissions to email@example.com
To subscribe or unsubscribe via the World Wide Web, visit https://mail.python.org/mailman/listinfo/python-ideas or, via email, send a message with subject or body 'help' to firstname.lastname@example.org
You can reach the person managing the list at email@example.com
When replying, please edit your Subject line so it is more specific than "Re: Contents of Python-ideas digest..."
Message: 1 Date: Wed, 13 Jul 2016 23:39:26 -0700 From: David Mertz firstname.lastname@example.org To: "Steven D'Aprano" email@example.com Cc: python-ideas firstname.lastname@example.org Subject: Re: [Python-ideas] allow `lambda' to be spelled ? Message-ID: CAEbHw4aVKCXLu2DC7K6ArxVHAjOkc15yk+irtPKfBa5xEy0G2A@mail.gmail.com Content-Type: text/plain; charset="utf-8"
On Wed, Jul 13, 2016 at 7:44 PM, Steven D'Aprano email@example.com wrote:
I actually do think ? is a little bit more readable. And I have no idea how to type it directly on my El Capitan system with the ABC Extended keyboard. But I still get 100% of the benefit in readability simply by using vim's conceal feature. If I used a different editor I'd have to hope for a similar feature (or program it myself), but this is purely a display question. Similarly, I think syntax highlighting makes my code much more readable, but I don't want colors for keywords built into the language. That is, and should remain, a matter of tooling not core language (I don't want https://en.wikipedia.org/wiki/ColorForth for Python).
FWIW, my conceal configuration is at link I give in a moment. I've customized a bunch of special stuff besides lambda, take it or leave it:
-- Keeping medicines from the bloodstreams of the sick; food from the bellies of the hungry; books from the hands of the uneducated; technology from the underdeveloped; and putting advocates of freedom in prisons. Intellectual property is to the 21st century what the slave trade was to the 16th.