Function overloading #20
Labels
Component: DSL
Something that concerns the design of PIE DSL
Priority: low
Status: proposal
Enhancement in the proposal stage
Type: enhancement
New feature or request
Allow overloading functions, i.e. have functions with the same names
code generation
Options
Easy: default parameters
last parameters can have defaults. Generate functions that pass the default values.
Code generation: 1, 2 or 3.
Medium: user-defined implementation, one function per arity
allow each overload to have its own implementation. Each function combined with its number of parameters must be unique.
Code generation: 2 or 3
Hard: user defined implementations, arbitrary overloads
Allow arbitrary overloads. They are basically completely separate functions except that they have the same name.
Requires some way to choose which function to use when they have the same arity. Use most specific signature? Follows Java semantics, but don't know if that works in NaBL2.
Code generation: 2 or 3
The text was updated successfully, but these errors were encountered: