DEV Community

Discussion on: Practical Guide to Fp-ts P6: The Do Notation

Collapse
 
steida profile image
Daniel Steigerwald

Very nice article, the whole series is.

Just a question, why do you not prefer this import style?

import { either, ioEither, option } from 'fp-ts';

Collapse
 
ryanleecode profile image
Ryan Lee

never tried 😉

Collapse
 
steida profile image
Daniel Steigerwald

I am using it all the time. It has a better DX.

1) It's more readable.
2) VSCode auto-import it correctly (you can choose it when you write it)
3) It's tree shakable.
4) No cons.