purescript-react / purescript-react-basic-hooks

An implementation of React hooks on top of purescript-react-basic
https://pursuit.purescript.org/packages/purescript-react-basic-hooks/
Apache License 2.0
200 stars 33 forks source link

Deprecate `&` in favour of `#` #68

Open i-am-the-slime opened 2 years ago

i-am-the-slime commented 2 years ago

& is very useful for defining hooks in the order they appear in the code and with fewer parens. However, there is import Type.Function (type (#)) which does the same and is consistent with # on the value level.

I think it would be a good idea to put a user defined warning on & and tell users to switch to # for a while and eventually deprecate &.