I'm currently working on my own programming language. I've started implementing forward references using multiple passes (parsing then analysing, detecting cycles...). The algorithms are a bit heavy but it's all quite fun to use once it's done.
Why are 99% of languages today using forward declarations only? Is it just for the compile times? Is it dogma? Languages stuck in the ancient times? People who make compilers don't know how to implement that? Nobody has tried making a language in the last 10 years?
I'm asking, because I think that forward references are awesome and I believe I should definitely fully integrate them in my language. Is there actually anything wrong with them?
Beyond the compilation, everything is unordered inside a huge virtual memory pool. So I don't see any reason it would be different for the code itself...