On Jul 19, 2011, at 7:44 AM, Sean Eagan wrote:
> On Tue, Jul 19, 2011 at 9:39 AM, Sean Eagan <[email protected]> wrote:
>> // replace <& with "owns"
>> let b = B owns {
>
> Sorry, that should have just been...
>
> B owns {
> ...
> }
B conquers {...}
Half-kidding. The mutating aspect still bothers me. Indeed it seems to have
tripped you up too, since you wrote:
let b = B owns {...}
as if owns were a pure operator.
If we are paving the "extend" cowpath, a function is the better paving material:
import extend from "@obj"; // or @core or whatever
extend(B, {...});
is completely unambiguous and no harder to analyze for a static program
analysis tool that can parse ES.next than <&.
/be
_______________________________________________
es-discuss mailing list
[email protected]
https://mail.mozilla.org/listinfo/es-discuss