
Oct. 23, 2003
4:25 a.m.
pipe = source for p in predicates: pipe = e for e in pipe if ^p(e)
Bah. Arbitrary semantics bound to line-noise characters. Guess what that reminds me of. :-)
If anyone can think of anything less line-noisy, I'm open to suggestions. The important thing is the idea of explicitly capturing an enclosing binding, however it's expressed.
I think that no matter what notation you invent, this will remain an unpythonic thing. I can't quite explain why I feel that way. Maybe it's because it feels very strongly like a directive to the compiler -- Python's compiler likes to stay out of the way and not need help. --Guido van Rossum (home page: http://www.python.org/~guido/)