Add \
overload handling calling a Nil
def
#111
Labels
breaking-change
Likely to break existing code bases
enhancement
New feature or request
maybe
Still in brainstorm phase, may not eventuate
This syntax would be useful for patterns such as
append \+ $i.foo $i.bar
.That is, where the
+
is usually typed and will not work on an input such asTableRow
.Typically, the pattern is
append { let {get bar} $b | get foo | + $b }
.Generalising this is tricky.
Implementation option
The
\<cmd> arg1 arg2 ... argN
is sugar for an intrinsic, which will amount tolet $i | \#n | <cmd> arg1 arg2 ... argN
.This benefits from having
<cmd>
be whatever is already defined, along with doing thelet $i
portion.The drawback is cmds (such as
+
) would now need aNil
input, which is going to place further burden on the inferencer.$i
The text was updated successfully, but these errors were encountered: