I agree with everything Mislav said and would adopt that syntax in a

My only concern is with the signature of Class.create and
Class.extend. I feel like having instance methods and class methods in
adjacent arguments can hurt the readability of the code. If you're
skimming a file you might miss the closing of one object literal and
the opening of another -- thus missing the transition from instance
methods to class methods. Then again, there are ways around that;
perhaps it's up to the individual developer to solve that problem.

On Jun 25, 9:48 am, "Mislav Marohnić" <[EMAIL PROTECTED]>
> You can't achieve this in JavaScript. Simply let it go.

I agree. Trying to emulate keywords with methods is hard enough;
trying to emulate them with magic property names is even harder. It
will lead to despair. Let's focus on solving the 80% problem in this
release; if we need to add bells and whistles later on, we can, but if
we put them in now we won't be able to remove them later.


You received this message because you are subscribed to the Google Groups 
"Prototype: Core" group.
To post to this group, send email to prototype-core@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 

Reply via email to