You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
#25 talks about method call syntax (which is actually just a property lookup plus a function call, much like Python and JavaScript).
There's nothing preventing us from implementing those ahead of time, without having object literals. If we're going that path anyway, then we could do the property lookup/method call as a standalone thing.
Why would that matter? Because the setting currently contains a bunch of accessors/destructors for the Qtree nodes, that would be much more intuitive as methods on the Qtree nodes themselves:
Coming back to this issue, I was surprised that I felt that all the Q properties ought to be methods. It complicates both the 007 syntax and the implementation. In fact, they're just immutable value properties. I think this was a kind of thinko, cargo-culting from subs to methods.
#25 talks about method call syntax (which is actually just a property lookup plus a function call, much like Python and JavaScript).
There's nothing preventing us from implementing those ahead of time, without having object literals. If we're going that path anyway, then we could do the property lookup/method call as a standalone thing.
Why would that matter? Because the setting currently contains a bunch of accessors/destructors for the Qtree nodes, that would be much more intuitive as methods on the Qtree nodes themselves:
Thus, you could do this:
Instead of (as you currently have to):
This would have the further advantage of uncluttering the setting a bit more.
The text was updated successfully, but these errors were encountered: