3 ms·
I don’t know how the Go compiler works but one solution is for each scope level to have a symbol table with a reference to the parent level’s table. So you can
by azhenley 7y ago
I don’t know how the Go compiler works but one solution is for each scope level to have a symbol table with a reference to the parent level’s table.
So you can traverse up for symbols.