Why does not Python accept functions with no names?

Grant Edwards grant.b.edwards at gmail.com
Sun Feb 20 23:45:32 EST 2022


On 2022-02-20, Christian Gollwitzer <auriocus at gmx.de> wrote:

>> For the same reason an empty sequence of characters cannot
>> be a variable name. Do you know any language (or formal
>> theory) that allows that?
>
> Tcl allows that:

Interesting to know, but the fact that Tcl does something differnt is
more of an argument against it.

My one expereince trying to write a non-trivial application was a
study in frustration.  After spending days trying to get Tcl to do
something useful, I finally gave up and wrote the program in Scheme in
a few hours.

--
Grant


More information about the Python-list mailing list