On 9/01/22 2:46 pm, Steven D'Aprano wrote:
if you can read expressions:

     spam(eggs | cheese,  aardvark)

then you can read type expressions:

     Spam[Eggs | Cheese, Aardvark]

That's like me saying that I can read Greek just because I know
how to pronounce the letters. I do, but that doesn't mean I
know what any of it means!

Most of the effort of learning to read type expressions, in any
language, is learning their semantics, which is very different
from value expressions. Whether they happen to superficially
resemble other parts of the language is pretty much irrelevant
to me.

--
Greg
_______________________________________________
Python-Dev mailing list -- python-dev@python.org
To unsubscribe send an email to python-dev-le...@python.org
https://mail.python.org/mailman3/lists/python-dev.python.org/
Message archived at 
https://mail.python.org/archives/list/python-dev@python.org/message/AXDVYGAUCKKWOMDDHGEMEIA6PUKDCHVT/
Code of Conduct: http://python.org/psf/codeofconduct/

Reply via email to