On 2011-04-04, at 12:40, Sam Tobin-Hochstadt wrote:

>> 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|.

FWIW, I read these destructuring patterns backwards too.  Must be a left/right 
brain thing.  Something I will have to learn the hard way to make it stick.
_______________________________________________
es-discuss mailing list
[email protected]
https://mail.mozilla.org/listinfo/es-discuss

Reply via email to