@nobleai/rescript-prelude
v0.13.9
Published
NobleAI optinionated frame for unifying external core libraries
Downloads
499
Readme
Rescript Prelude
NobleAI Opinionated Prelude for unification of Belt/Js and other antique core libraries.
Style
- Data First
- Prefer arrows
- Immutable implementations top level
- Mutable implementations in module Mut
- Spend the energy to give optionality/variant encoding when core returns primitive-encoded exceptional values, e.g. Array.indexOf
- Prefer Promise over async
- Trailing _ in function name variation of other function returning unit
- Clearly identify reference/strict equality since we dont often have reference equality.
- All objects should have
let log: ('a, string) => 'a