Why using the size property in set

David Bruant bruant.d at gmail.com
Thu Jul 31 04:21:43 PDT 2014


Le 31/07/2014 09:25, Maxime Warnier a écrit :
> Hi everybody,
>
> I was reading the doc for the new Set method and something suprised me :
>
> Why Set uses the size method instead of the length property ?
IIRC and with my own words "length" refers more to something that can be 
measured contiguously (like a distance or a number of allocated bytes, 
etc.) while "size" doesn't have this contiguous aspect to it.

David


More information about the es-discuss mailing list