hy - "Ran into a RPAREN where it wasn't expected" when using "->>" - TagMerge
1"Ran into a RPAREN where it wasn't expected" when using "->>""Ran into a RPAREN where it wasn't expected" when using "->>"

"Ran into a RPAREN where it wasn't expected" when using "->>"

Asked 1 years ago
2
1 answers

As suggested by the error message, (chain #*) is not lexically legal. #*, as well as #**, must be followed by a form. The underlying idea is that #* and #**, like ( and ", are not forms themselves, but characters that can be used along with some other characters to construct forms, namely (unpack-iterable …) and (unpack-mapping …). #1730 discusses some related issues. At any rate, lexing happens before any macros are expanded, so ->> can't get around this.

Source: link

Recent Questions on hy

    Programming Languages