Adriano on Nostr: nprofile1q…0cg79 That is basically the same thing that happens in Python. ...
nprofile1qy2hwumn8ghj7un9d3shjtnddaehgu3wwp6kyqpqmm35vqtgdg3mw4v9vsvxuaapxhsapr4vpxj5yu94jegxx85alxes80cg79 (nprofile…cg79) That is basically the same thing that happens in Python. Assignment is not copying.
What is more annoying is that const does not necessarily mean const:
const myobj = {test:1};
myobj.test = 2;
is valid code, because what is const is the full reference from myobj to the literal object.
What is more annoying is that const does not necessarily mean const:
const myobj = {test:1};
myobj.test = 2;
is valid code, because what is const is the full reference from myobj to the literal object.