Open giann opened 1 year ago
Wouldn't this incorrectly suggest a copy is being made?
No, objects, lists and maps are always passed by reference and not copy.
Wouldn't it be better if the type of "this" can be omitted and inferred from the object block because the Object is a type... right...? In this case "Person" is?
If we do this, it means we don't have "methods" anymore, just functions associated with the object. this
becomes a user convention and buzz would see it like a normal function argument.
Also I try to avoid inferring when I can help it. One of buzz tag lines is that it's unambiguous, meaning very few implicit behaviors.
Since buzz is supposed to be unambiguous do we need implicit
this
argument for objects' methods?would become