Open ngeiswei opened 5 months ago
There was a discussion about var-args and arity in the context of the import op here: Much of the discussion is pertinent to var-args in general. https://github.com/trueagi-io/hyperon-experimental/pull/580#discussion_r1491332304
Also, it seems like var-args support might be gated on https://github.com/trueagi-io/hyperon-experimental/issues/346 Although that should be fixable.
What is your problem?
Overloading a function with structure with different numbers of arguments confuses the interpreter.
How to reproduce your problem?
Run the following code
What would you normally expect?
What do you get instead?
What else do you have to say?
The following code
properly works, indicating that the problem comes from the fact that the function is an expression instead of a mere symbol.