Hacker News new | ask | show | jobs
by klodolph 1312 days ago
Languages like Python, Java, and C# have implicit reference semantics. When you create an object, you get a pointer to that object (usually, or commonly).

In languages like C, C++, Go, Rust… references are more explicit. If you want a pointer to an object, you have to &, or something similar.

It gets a bit fuzzy.

2 comments

On C#, we also have structs with value semantics, and arrays can be stack allocated.
Thank you