>> Renaming:
>> - I find this syntax slightly unintuitive: import Geometry.{draw: drawShape}
>> At first glance this would mean for me: rename drawShape to draw. "draw"
>> feels to me like the result of the import.
>
> This is based on the destructuring syntax, where this:
>
> let {draw: drawShape} = ... some expression ...;
>
> also binds the identifier |drawShape|.
Got it. Makes sense.
--
Dr. Axel Rauschmayer
[email protected]
twitter.com/rauschma
home: rauschma.de
blog: 2ality.com
_______________________________________________
es-discuss mailing list
[email protected]
https://mail.mozilla.org/listinfo/es-discuss