Remix.run Logo
DanielHB 5 days ago

what do you mean by "arrow operator"?

amiga386 5 days ago | parent | next [-]

Probably a reference to Clojure's arrow operator:

https://blog.frankel.ch/learning-clojure/2/

Something like a(b(c(d(e(7)))))) in Javascript could be written (-> 7 e d c b a) in Clojure?

balamatom 5 days ago | parent [-]

Bingo.

5 days ago | parent [-]
[deleted]
lionkor 5 days ago | parent | prev [-]

Maybe overloadable operators like in C++, where -> usually demotes some kind of deeper access into the object or abstraction? Or, the opposite, and abstracted access.

DanielHB 5 days ago | parent [-]

That is what I thought, but that doesn't make sense for a language without pointers

According to the other comment it seems he meant the |> pipe operator that is under proposal in js