Surveying other libraries would be helpful.

Yes - enough guessing - I'll do my best to do some counting with different
libraries (both for DOM and for nodejs) and report back some numbers.  Erg
- busy work : )

Surveying is useful in the sense of visually comparing code versions
with/without different short function proposals.

I doubt that (simple) statistics are equally useful here, though: the current
syntax is sufficiently awkward that programmers actively avoid using the
very code patterns that short functions would help to make readable.

With the large range of avoidance patterns (from preferring named
callbacks over control-flow libs all the way to preprocessors), proper
statistics about the pain that could be avoided by improved function
syntax would involve non-trivial amounts of inspection/interpretation
and rewriting.

Claus



_______________________________________________
es-discuss mailing list
[email protected]
https://mail.mozilla.org/listinfo/es-discuss

Reply via email to