2 ms·
Right - that's why I said nothing but methods and nested classes - expressions in method bodies would be disallowed. And tracing and method added hooks and so o
by chrisseaton 10y ago
Right - that's why I said nothing but methods and nested classes - expressions in method bodies would be disallowed. And tracing and method added hooks and so on, yes.
You could say it was a separate language .rb-module or something, to make it formal.
- burke 10y agoOh, huh, yeah, that makes sense. That would totally work. Cool idea.
- dragonwriter 10y ago> Right - that's why I said nothing but methods and nested classes - expressions in method bodies would be disallowed. I presume you mean "expressions that aren't method definitions in class bodies" (though that's a problem, because of things like attribute declarations) rather than "expressions in method bodies", since methods with no expressions in their bodies would be pointless.