Hacker News new | ask | show | jobs
by marcosdumay 996 days ago
Honestly, are those tricky questions the author had a too superficial knowledge to identify?

> Why do we need variables?

Do we even need them? You mean variables that vary? If so there are many languages that don't have them at all. Or you mean just naming values?

> How variables are really stored?

That is incredibly complicated. Variables don't exist on the executable like they do on your source code. They are just an abstraction.

> The type of variables matter?

Well, what "type" even means? There are PHD thesis written on this.

1 comments

I suspect he's thinking about the stack vs heap distinctions.