usethesource / rascal

The implementation of the Rascal meta-programming language (including interpreter, type checker, parser generator, compiler and JVM based run-time system)
http://www.rascal-mpl.org
Other
399 stars 79 forks source link

Implement + splices ("SplicePlus") #1990

Open PaulKlint opened 1 month ago

PaulKlint commented 1 month ago

Splices of the form +x or +int x are not implemented in either the interpreter or the compiler. Issue #1930 already hints at this.

This is a reminder to implement SplicePlus in type checker and compiler.

jurgenvinju commented 1 month ago

I get it for the matching side, what does it mean for the expression side? The same as *?

PaulKlint commented 1 month ago

This issue is intended to record the situation not to discuss this feature.

Nonetheless: in an expression it could mean a list or set insertion of at lest one element.