3 ms·
& isn't even the dereference operator, right? That's what gives you the pointer. * gives you the value at the pointer. I guess that's why it's preferable, in En
by conradludgate 7y ago
& isn't even the dereference operator, right? That's what gives you the pointer. * gives you the value at the pointer. I guess that's why it's preferable, in English it reads nicely and describes exactly what it does. `val arg = @(argv + 1)` reads like "val arg is the value at argv + 1"
- maxmcd 7y agowhoops you are correct. interesting, thanks
- miccah 7y agoI always read & as "at" mentally when reading code :)
- 2OEH8eoCRo0 7y agoI read it as "address of" but @ definitely works if we are talking about an address. The value is @x