repeated parameter names and default values

Allen Wirfs-Brock allen at wirfs-brock.com
Thu Sep 27 09:19:50 PDT 2012


Consider

   function f(a, b=a, a=3, c=a) {
      return a+" "+b+" "+c
   }

   console.log(f(1));

Based upon the conclusions about argument binding at the recent TC39 meeting this will display:
  "3 1 3"

Any disagreement of this?

Allen


More information about the es-discuss mailing list