On 11/18/05, Daniel S. email@example.com wrote:
Could you point me to one of those discussions? I wonder why such a
proposal was turned down.
As a big proponent of making def return something useful, it was turned
down in part because what would def return to be passed into private
private def self.foo
If you simply do :foo, then you would be applying private to Klass#foo
– which isn’t what you want. But returning more than :foo isn’t kosher
either since private doesn’t (at this point) know what to do with it.
I think Matz would be at least partially in favour of this if we could
figure out something useful and lightweight to return that wouldn’t
prevent the above code.