This repository has been archived by the owner on Jun 27, 2022. It is now read-only.
[Lang Enhancement Proposal] @overload
decorator for allowing function signature overloads
#34
Labels
enhancement
New feature or request
idea
Theoretical feature, idea etc.
language
Core language issue, change or idea
Affected area by change:
Short Introduction and Summary
The addition of the compiler-managed
@overload
decorator, which would allow for specific signatures to be automatically used depending on the input. This decorator will be only important to the Para-C Compiler, which would correctly assemble the functions and create the C code.Is your request related to a problem? Please describe.
Ability to write nicer functions, especially considering the difference between arrays and singular values, which could then be written in overloads and managed by separate functions, but easily used since the same identifier can be used.
Describe the solution you'd like
Implementation of a decorator called
overload
with an implementation look possibly similar to this:Describe alternatives you've considered
Possibly allowing for direct overloading without any decorator, like in C#, which would make the previous code look like this:
The text was updated successfully, but these errors were encountered: