-
Notifications
You must be signed in to change notification settings - Fork 31
Function parameter names #4
Copy link
Copy link
Open
Labels
Description
Currently parameter names of a function are recorded in the function type.
TFunction {
return_type : Type
arguments : (name : String, type : Type)[]
}
In a function definition, the names are used.
However, this doesn't accurately reflect the C semantics. The names of parameters don't relate to the type of the function. What if you first write a prototype and then a definition? The first doesn't need parameter names and the second does. Does the second function type overwrite the first?
Reactions are currently unavailable