gcanti / flow-static-land

[DEPRECATED, please check out fp-ts] Implementation of common algebraic types in JavaScript + Flow
MIT License
408 stars 22 forks source link

Idea for a babel plugin: strip inj / prj #18

Open gcanti opened 8 years ago

gcanti commented 8 years ago

inj / prj are just identity functions at runtime, they could be stripped out by a babel plugin

gcanti commented 8 years ago

naive implementation https://github.com/gcanti/flow-static-land/blob/master/test/babel-plugin.js