| Post Reply | RetroFed Forum Forum Index » Zig |
| Author | Message | ||
|---|---|---|---|
PotatoesFall
discuss.tchncs.de
PotatoesFall@discuss.tchncs.deJoined: 2023-06-11 |
I'm currently learning the language, and I was wondering about this design quirk. Basically, if we have a variable x which is a pointer, we use For example something like
is much more clearly written as
But then it feels really inconsistent that we don't do the same for taking a reference with We still have the issue that the & is not next to the value being dereferenced:
this takes the address of the It also just feels inconsistent. Additionally, I think the type declaration for a pointer should be Thoughts? |
||
| 10 Original | |||
PotatoesFall
discuss.tchncs.de
PotatoesFall@discuss.tchncs.deJoined: 2023-06-11 |
btw it's clear to me that a |
||
| 1 | |||
| Post Reply |
Back to top |