[Python-ideas] PEP 505 (None coalescing operators) thoughts
Terry Reedy
tjreedy at udel.edu
Tue Sep 29 02:38:39 CEST 2015
On 9/28/2015 5:48 PM, Luciano Ramalho wrote:
> Glyph tweeted yesterday that everyone should watch the "Nothing is
> Something" 35' talk by Sandi Metz at RailsConf 2015. It's great and,
> in a way, relevant to this discussion.
>
> https://www.youtube.com/watch?v=29MAL8pJImQ
I understood Metz as advocation avoidig the nil (None) problem by giving
every class an 'active nothing' that has the methods of the class. We
do that for most builtin classes -- 0, (), {}, etc. She also used the
identity function with a particular signature in various roles.
--
Terry Jan Reedy
More information about the Python-ideas
mailing list