Post #3219875
2026-06-09 09:42 UTC
if you’re working with higher level languages you pass-by-reference all the time. give a list to a function to modify it? that’s by reference. giving an event handler function to a framework? that’s by reference. setting a property on an object? that’s usually by reference.
Replies (1)
-
@funkless_eck@sh.itjust.works 2026-06-09 09:47
the list is the helpful part to understanding it. it would be terrible if, with bar being a list and foo being a member of the list if foo in bar: return true modified the list. So yeah, you want to look at the list not edit the list, it’s a pointer.