Open DavePearce opened 4 years ago
Currently, one cannot specify parameter names for so called mixed types. The following illustrates a simple example from ACE.wy:
ACE.wy
public type Editor is &{ // Adds the selection and cursor. method addSelectionMarker(Range) -> (Range), ... }
Here, the Range parameter (and return) cannot be given a name. For example, in the ACE API reference, we have this:
Range
addSelectionMarker(Range orientedRange) Range Adds the selection and cursor.
Therefore, I think it would be helpful overall to support the following:
public type Editor is &{ // Adds the selection and cursor. method addSelectionMarker(Range orientedRange) -> (Range result), ... }
Amongst other things, this would be helpful for doc documentation.
doc
Currently, one cannot specify parameter names for so called mixed types. The following illustrates a simple example from
ACE.wy
:Here, the
Range
parameter (and return) cannot be given a name. For example, in the ACE API reference, we have this:Therefore, I think it would be helpful overall to support the following:
Amongst other things, this would be helpful for
doc
documentation.