A friendlier, sugarier lambda -- a proposal for Ruby-like blocks in python

Bruno Desthuilliers onurb at xiludom.gro
Mon Oct 16 05:51:19 EDT 2006


Paul Boddie wrote:
> Kay Schluehr wrote:
>> Spreading tiny function definitions all over the code
>> may be finally not such a good idea compared with a few generic methods
>> that get just called? OO might run out of fashion these days but Python
>> is not Java and Pythons OO is pretty lightweight.
> 
> I think you've successfully identified a recent trend in Python
> development: the abandonment of fairly transparent object-oriented
> techniques in favour of more opaque but supposedly more convenient
> hybrid techniques. 

Just for the record : Ruby's code-blocks (closures, really) come from
Smalltalk, which is still the OneTrueObjectLanguage(tm).


-- 
bruno desthuilliers
python -c "print '@'.join(['.'.join([w[::-1] for w in p.split('.')]) for
p in 'onurb at xiludom.gro'.split('@')])"



More information about the Python-list mailing list