Shouldn't all in-place operations simply return self?
17 Jan
2013
17 Jan
'13
8:11 a.m.
Hi, In a recent thread http://article.gmane.org/gmane.comp.python.numeric.general/52772 it was proposed that .fill(.) should return self as an alternative for a trivial two-liner. I'm raising now the question: what if all in-place operations indeed could return self? How bad this would be? A 'strong' counter argument may be found at http://mail.python.org/pipermail/python-dev/2003-October/038855.html. But anyway, at least for me. it would be much more straightforward to implement simple mini dsl's ( http://en.wikipedia.org/wiki/Domain-specific_language) a much more straightforward manner. What do you think? -eat P.S. FWIW, if this idea really gains momentum obviously I'm volunteering to create a PR of it.
4108
Age (days ago)
4110
Last active (days ago)
14 comments
10 participants
participants (10)
-
Alan G Isaac
-
Benjamin Root
-
Charles R Harris
-
Dag Sverre Seljebotn
-
eat
-
Jim Vickroy
-
josef.pktd@gmail.com
-
Nathaniel Smith
-
Ralf Gommers
-
Thouis (Ray) Jones