▲ | xigoi 6 days ago | |||||||
Janet, like some other lisps, has the arrow macro, which allows you to write in the “OO” style.
| ||||||||
▲ | zelphirkalt 5 days ago | parent | next [-] | |||||||
Ah neat! In Guile I use threading/pipelining all the time with a small macro:
Janet already having this ... Reading many good things about Janet in this discussion. | ||||||||
▲ | uvas_pasas_per 6 days ago | parent | prev | next [-] | |||||||
Something like this combined with some IDE smarts to offer up the possibilities for `fun` after I type `(-> a` ... that could be very cool. | ||||||||
| ||||||||
▲ | worthless-trash 5 days ago | parent | prev [-] | |||||||
I think that threading macros is different to method chaining (at least to my understanding), method chaining works on the object returned, and threading macros can work on raw data or objects. |