I'd like to replace:

  v.setAttribute('x', ...);

with:

  v.x = ...;

someday. Having an alias `set` for `setAttribute` would be a fine interim step.

On 2008-12-03, at 00:45EST, Max Carlson wrote:

I've had a number of developers tell me they miss the shorthand of setX(...) - 4.2 now requires setAttribute('x', ...). This is good for consistency, but it's bad for backward compatibility and makes code more verbose. setAttribute('foo', ...) requires a lot of extra typing...

What do you think about having the compiler expand the old setX/Y() methods into the corresponding setAttribute('x/y')? We could add a terse alias for setAttribute() - set(), or maybe s()...

Thoughts?
--
Regards,
Max Carlson
OpenLaszlo.org

Reply via email to