🎓 Dr. Freemo :jpf: 🇳🇱 on Nostr: npub1rqs5l…qkfpm Thats common for most languages actually where primitive are ...
npub1rqs5lnxl7ah9zuecxh797w0juaesxs2y7xu5g7t0lhaay2mc65zsxqkfpm (npub1rqs…kfpm) Thats common for most languages actually where primitive are immutable and passed by value and all other types are passed by reference. This is true for Ruby and Java for example.
Different languages define primitives differently for example in Java strings are immutable but passed by reference so effectively the same as passed by value for these purposes. In ruby however strings are mutable.
Published at
2023-08-07 21:38:02Event JSON
{
"id": "a76b8cf3f18397dca1e2d8de335ac78d87039f01f880d0272cf554a23676c33b",
"pubkey": "12da98a3a66fb47b43526b1b241e91df632bfd4058dc5364938dc932fe931118",
"created_at": 1691444282,
"kind": 1,
"tags": [
[
"p",
"18214fccdff76e51733835fc5f39f2e773034144f1b944796ffdfbd22b78d505",
"wss://relay.mostr.pub"
],
[
"p",
"0d1a61f8a35c1f5a4d4097aa634522201f9f766ce9eccd4f3b01a35b8e66a96c",
"wss://relay.mostr.pub"
],
[
"e",
"bdef93fdfea853b0d2779ac6df26bdf9d60e746a6d9492aac1d8facb4337a9e2",
"wss://relay.mostr.pub",
"reply"
],
[
"proxy",
"https://qoto.org/users/freemo/statuses/110850492499499303",
"activitypub"
]
],
"content": "nostr:npub1rqs5lnxl7ah9zuecxh797w0juaesxs2y7xu5g7t0lhaay2mc65zsxqkfpm Thats common for most languages actually where primitive are immutable and passed by value and all other types are passed by reference. This is true for Ruby and Java for example.\n\nDifferent languages define primitives differently for example in Java strings are immutable but passed by reference so effectively the same as passed by value for these purposes. In ruby however strings are mutable.",
"sig": "6c38bc7be966fb877cfc1cef4178450c88ab5c0ff9ee618341bc3a191efdaa767d4f86c2877cb5173440c158668601a10f62ca47c86426a4d0a584c9e0f9acb1"
}