Quote:
Originally Posted by MrDunne
There's also this: ...
|
That's a result of the GS2 grammar not being flexible enough. Ideally, anonymous functions would be listed as expressions (so you could put them anywhere you could put, say,
true), but they seem to only be allowed in variable assignments (i.e.,
temp.f = ...).
One nifty hack around this one is, for example,
return (temp.f = function () { ... } );. But that's rather ugly and I certainly don't do it

.
But yeah, that is indeed another thing that should be changed and should be fairly straightforward.