counting that out(regardless whether it is (dis)advantage or not), what
else a block can do but not a named function ?

Alex Martelli wrote:
> [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote:
>
> > could someone enlighten me what is the advantage of block over named
> > function ?
> >
> > One thing that I can see a difference may be lexical scope ?
>
> "Yes, but" -- according to the latest Ruby book, the "mixed lexical
> scope" of blocks is a highly controversial notion in the Ruby community;
> so I wouldn't necessarily count it as an _advantage_ of Ruby blocks...
> 
> 
> Alex

-- 
http://mail.python.org/mailman/listinfo/python-list

Reply via email to