Tuple parameter unpacking in 3.x
bearophileHUGS at lycos.com
bearophileHUGS at lycos.com
Tue Oct 7 16:17:35 EDT 2008
Brett C.:
> There are two things to realize about the tuple unpacking that acted
> as motivation. One is supporting them in the compiler is a pain.
> ...
> Second, tuple unpacking in parameters breaks introspection horribly.
Are there ways to re-implement from scratch similar native pattern-
matching features in CPython, like ones of Closure:
http://items.sjbach.com/16/some-notes-about-clojure
Or better ones of Scala, (or even OcaML, but those are static), etc,
that avoid that pain and introspection troubles?
Bye,
bearophile
More information about the Python-list
mailing list