Hi Allen, I've updated the tool to count the number of potential object literal methods as well. I'll post details tomorrow.
kevin On Tue, Mar 13, 2012 at 11:12 PM, Allen Wirfs-Brock <[email protected]>wrote: > Function expressions in object literals that could use concise method > syntax? > > > > Rick Waldron <[email protected]> wrote: > > Kevin, > > Over the weekend I applied David Herman's new tri-lambda syntax to > Popcorn.js to see how it would look and feel: > > https://github.com/rwldrn/popcorn-js/compare/tri-lambda > > So, just now I ran Popcorn.js through your Analytics Machine, here is the > output: > > Total Function Expressions*: 63 65.625% Expression Functions**: > 1219.047619047619047%Expression Functions That Return an Object > Literal:00%Functions with a single statement:914.285714285714285%Block > Functions:4266.66666666666666% > > * Does not include function expressions that contain references to 'this' > in its immediate scope. > > ** Function expressions whose first statement is a return. > Parameter List Length 0 17.46031746031746% 1 47.61904761904761% > 230.158730158730158%34.761904761904762%4 or more0% > On Tue, Mar 13, 2012 at 8:55 PM, Kevin Smith <[email protected]> wrote: > >> I've updated the tool to also analyze the number of formal parameters for >> each BTF candidate. I've haven't had time to update the spreadsheet, but >> for every body of code that I've sampled so far, 1 is the most common >> number of formal parameters. >> >> This suggests that optimizing syntax for BTFs with one parameter might be >> worthwhile. >> >> kevin >> >> _______________________________________________ >> es-discuss mailing list >> [email protected] >> https://mail.mozilla.org/listinfo/es-discuss >> >> >
_______________________________________________ es-discuss mailing list [email protected] https://mail.mozilla.org/listinfo/es-discuss

