qupa-project / uniview-lang

View once immutability enabling the safeties of immutable code, while enjoying near procedural performance
https://uniview.qupa.org
MIT License
2 stars 0 forks source link

Constant argument #55

Closed AjaniBilby closed 3 years ago

AjaniBilby commented 3 years ago

Allow arguments to be parsed without having to create and destroy a new entity when no changes are made. This implements and closes #46

AjaniBilby commented 3 years ago

Does not skip the copying behaviour in IR when parsing a copy to a constant function argument

AjaniBilby commented 3 years ago

Does not skip the copying behaviour in IR when parsing a copy to a constant function argument

For now, we can assume LLVM will optimise out this copy. However, for classes, it will likely not. This is a feature that can be implemented later in the bootstrapping compiler and can be left out for now