logoalt Hacker News

yxhuvud • today at 5:07 AM • 2 replies • view on HN

The parallel assignment just work mostly like it does in ruby so that doesn't look weird to me (except the need for 'var' in the first place).

Agreed on the rest, though I don't understand what the problem would be with recursion. Is it using reference passing also for primitives like integers?


Replies

teo_zero • today at 6:40 AM

> Is it using reference passing also for primitives like integers?

That's what I assumed, but honestly I might have misunderstood the docs. This passage is not very clear:

> Copper manipulates only references to objects. Simple data types such as integers must be seen as references to stateless objects (i.e. objects that have no state in memory).

➕ show 1 reply
Muhammad523 • today at 10:19 AM

Python does that too

➕ show 1 reply