source-academy / go-slang

Implementation of Go
Apache License 2.0
0 stars 1 forks source link

Function hoisting not supported #22

Open chengda300 opened 2 months ago

chengda300 commented 2 months ago

For now, functions must be declared before being called. In the actual language, functions can be called first before being declared in the same program. (Might be a problem with main() being called earlier than it is supposed to, which means main() should be called last)