purescript-react-basic-hooks icon indicating copy to clipboard operation
purescript-react-basic-hooks copied to clipboard

Deprecate `&` in favour of `#`

Open i-am-the-slime opened this issue 3 years ago • 0 comments

& 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 &.

i-am-the-slime avatar Aug 01 '22 08:08 i-am-the-slime