Built-in, primitive function composition operator #254
Labels
C-Moderate Effort
Should take a moderate amount of time to address.
S-Nice to have
Minor importance
U-Language Design
U-Standard Library
Z-Feature Request
Z-Student
Good project for a student.
Eventually, once #136 is addressed, function composition can simply be in a library. However, for now it might be nice to have function composition as a built-in operator.
Note this does create a bit of an issue with disambiguating multiplication and function application. Currently, any application of a binary operator is seen as a "multiplicative term" when it occurs as the left-hand argument to a juxtaposition. That is currently justified since no binary operator can have a function as output. But of course that would not be true anymore if we add a function composition operator. Options include (1) adding an explicit function application operator, (2) subdividing binary operators into two sets, those which can output a function and those which can't, and deciding on multiplication vs application based on that.
The text was updated successfully, but these errors were encountered: