From: "Florian Groß" Date: 2005-04-06T21:51:03+09:00 Subject: Re: [curiousity] why aren't declarations just syntactic sugar? Dave Burt wrote: > "MyClass do ..." looks like a syntax error to me. > > How about a Class#| for this (think set union like Array#|)? > > MyClass |= Class.new do > .... > > First-class methods would make implementation of something like this > convenient. That would not work though as the block can not bind to the | operator.