[Webkit-unassigned] [Bug 74633] Allow JSStaticScope to bind more than one variable

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Mon Dec 19 18:40:44 PST 2011


https://bugs.webkit.org/show_bug.cgi?id=74633


Gavin Barraclough <barraclough at apple.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
 Attachment #119482|review?                     |review+
               Flag|                            |




--- Comment #4 from Gavin Barraclough <barraclough at apple.com>  2011-12-19 18:40:44 PST ---
(From update of attachment 119482)
So, we're really keen to avoid unnecessary complexity introduced by premature optimizations, and I think this patch is probably not truly necessary at this stage.  I think it would be perfectly possible to implement block scoped const by pushing multiple consts each with their own scope.  Clearly letting them share a scope object is more efficient, but it seems this is just an optimization.  As such it would have been much better to implement the feature first, then the optimization for it, rather than implementing an optimization for a feature that doesn't just exist, and as such we can't assess the value of!

I think it's likely enough that this will be a benefit in the long run that we can let this slide this time, so I won't make you restructure your set of changes to land this after block scoped const, but for future reference we really do want changes like this to be justified empirically.

-- 
Configure bugmail: https://bugs.webkit.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.



More information about the webkit-unassigned mailing list