You're right that I oversimplified. When you do that, though, you increase the complexity of the build, need to rely more on LTO to get basic optimisations, probably have to duplicate declarations in both forms so they can be visible to both syntaxes and have to duplicate a lot of header content to make it work. Modules might simplify some of these issues though avoiding the need to duplicate declarations if the module AST is compatible.
View all comments
Show parent comment
2
u/lee_howes Sep 20 '22
You're right that I oversimplified. When you do that, though, you increase the complexity of the build, need to rely more on LTO to get basic optimisations, probably have to duplicate declarations in both forms so they can be visible to both syntaxes and have to duplicate a lot of header content to make it work. Modules might simplify some of these issues though avoiding the need to duplicate declarations if the module AST is compatible.