slembcke on Nostr: Had another conversation about pass-by-ref vs pass-by-value and why passing an object ...
Had another conversation about pass-by-ref vs pass-by-value and why passing an object in something like C# or JS doesn't copy the object. Feels like this comes up every few months.
Always takes a bit of a struggle to explain what a pointer is to someone who's programmed for years without ever using one directly.
Obviously not a big problem, but it always makes me wonder what actually makes for the better abstraction.
Published at
2026-03-10 17:50:44 UTCEvent JSON
{
"id": "8d3c9d14f38e2b517cefe49a975bcfbbf30363690b27108984b97bd1ca6c638c",
"pubkey": "a91da14fbf7177ee0f2cb78aa3f94169bff6b6c3c61202bd4dd308764fc36190",
"created_at": 1773165044,
"kind": 1,
"tags": [
[
"proxy",
"https://mastodon.gamedev.place/users/slembcke/statuses/116206144377018984",
"activitypub"
],
[
"client",
"Mostr",
"31990:6be38f8c63df7dbf84db7ec4a6e6fbbd8d19dca3b980efad18585c46f04b26f9:mostr",
"wss://relay.ditto.pub"
]
],
"content": "Had another conversation about pass-by-ref vs pass-by-value and why passing an object in something like C# or JS doesn't copy the object. Feels like this comes up every few months.\n\nAlways takes a bit of a struggle to explain what a pointer is to someone who's programmed for years without ever using one directly.\n\nObviously not a big problem, but it always makes me wonder what actually makes for the better abstraction.",
"sig": "e33d3ff353db673227f4b1b813e59b921bd1e8430c2ab2ca848b8ff624e70c5fb9c8eacc30ae5f9c11cbb99a1d1723981fb7bb4f068b49945f27f717dc1e9362"
}