3 ms·
> When you do "var B = Object.create(A);", should B be called a clone of A or a copy of A? Neither. In Self lingo, A is a mixin of B. The least bad wording wou
by masklinn 14y ago
> When you do "var B = Object.create(A);", should B be called a clone of A or a copy of A?
Neither. In Self lingo, A is a mixin of B. The least bad wording would be centered around composition, but I guess it could also be understood that B is an extension of A.
It can't be a clone or a copy, because changing A will still impact B, they don't become independent objects.