You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
We have the following three definitions to express operator parameters:
/** * A formal parameter of an operator.*/sealedabstractclassFormalParamextendsSerializable {
defname:Stringdefarity:Int
}
/** An ordinary formal parameter, e.g., x used in A(x) == ... */caseclassSimpleFormalParam(name: String) extendsFormalParamwithSerializable {
overridedefarity:Int=0
}
/** A function signature, e.g., f(_, _) used in A(f(_, _), x, y) */caseclassOperFormalParam(name: String, arity: Int) extendsFormalParamwithSerializable {}
It is not clear to me why the parameters are so complex. We can have one class instead:
We have the following three definitions to express operator parameters:
It is not clear to me why the parameters are so complex. We can have one class instead:
This refactoring will touch a lot of code. But we should do it after having integrated the type checker.
The text was updated successfully, but these errors were encountered: