|
|
Subscribe / Log in / New account

Adding None-aware operators to Python?

Adding None-aware operators to Python?

Posted Aug 2, 2018 18:21 UTC (Thu) by jezuch (subscriber, #52988)
Parent article: Adding None-aware operators to Python?

I kind of find it amusing, all those wishing for null-safe or None-safe operators. From my point of view it looks like people wish for monads without realising it. And without understanding the theory. And it *is* very implicit, this monad-ness of it all. I'm not a Python programmer but it's not just Python, sooner or later it appears everywhere. Or at least where there are not already monads :)


to post comments

Adding None-aware operators to Python?

Posted Aug 3, 2018 8:14 UTC (Fri) by marcH (subscriber, #57642) [Link] (1 responses)

Sounds like the perfect time for a simple monad example.

Adding None-aware operators to Python?

Posted Aug 9, 2018 6:49 UTC (Thu) by HelloWorld (guest, #56129) [Link]

Python already has syntax for two monads: list comprehensions and await/async, so if you need an example, look at any program using those.


Copyright © 2025, Eklektix, Inc.
Comments and public postings are copyrighted by their creators.
Linux is a registered trademark of Linus Torvalds