May 10, 2013
3:25 a.m.
On Fri, May 10, 2013 at 2:08 AM, Greg Ewing <greg.ewing@canterbury.ac.nz>wrote:
Paul Moore wrote:
Overall, I'm somewhat indifferent. The use case seems fairly specialised to me, and yet the syntax "def name = value" seems like it's worth reserving for something a bit more generally useful.
Hmmm. Maybe
def name = value
could turn into
name = value.__def__('name', __name__)
C-esque macros (and perhaps macropy) could implement this and decorators under the same roof. Perhaps we can somehow solve the more general problem without introducing macro kludge? Yuval