@mobily/ts-belt for inspiration #662
ivan-kleshnin
started this conversation in
Ideas
Replies: 2 comments
-
Good reference, but I will use as reference for |
Beta Was this translation helpful? Give feedback.
0 replies
-
Thanks for your email, I will reply as soon as I see it. -----Maosong Pei
|
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
There's a new library
@mobily/ts-belt
which you can check for reference, Dejan. You are likely aware of them (I see a single mention) but anyway.Not a fan of Rescript... but I've noticed a lot of bold, non-conventional decisions, regarding APIs.
For example, their
map
accepts either(mapFn)(data)
or(data, mapFn)
👈 the flipped order. Finicky but might be convenient in practice:More important is working type inference for
compose / pipe
, unlike Ramda/Rambda:👆
pipe
acceptsdata
as the first argument which is again non-conventional but improves readability (and maybe type inference).Beta Was this translation helpful? Give feedback.
All reactions