You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Just my personal opinion, Option, ReadonlyArray, etc. are more like a module, like a static method of a class, but I found that all the exports of fp-ts in the index.ts are in the form of "pascalCase".
I'm writing some functional modules in my own project, and I want to be consistent with the fp-ts style, so I want to know why fp-ts chose option instead of Option, style preference, historical reasons, or other?
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
Just my personal opinion,
Option
,ReadonlyArray
, etc. are more like a module, like a static method of a class, but I found that all the exports of fp-ts in the index.ts are in the form of "pascalCase".I'm writing some functional modules in my own project, and I want to be consistent with the fp-ts style, so I want to know why fp-ts chose
option
instead ofOption
, style preference, historical reasons, or other?Beta Was this translation helpful? Give feedback.
All reactions