Hello, I am new to Julia (with no CS background) I have experience in python programming and a bit of other languages like:C, JAVA, R. I really do not understand what a symbol is , I know it is used in labels and other stuff but I still couldn’t capture the essence of it.
Like a variable is analogous to a label for a memory place that a value is stored in. Are symbols like variables they point to a given memory address ? Or are they like a datatype such as float, int, etc… I don’t know why, but this notion of symbols is confusing me, I understood its usage as labels in various data structures but besides that I cannot understand what is doing or how it behaves internally.
9 Likes
This is a bit inaccurate. A variable is a label for a value, and that value can point to a memory location, but it can also be ‘just’ a value which isn’t necessarily stored in memory, like eg. x = 1.0
.
2 Likes