Proposal: Placeholder operator

Sultan thysultan at gmail.com
Fri Jan 11 13:02:05 UTC 2019


Placeholder operator: !

Use in function parameters(maintains arity without creating a named
binding):

const foo = (a, b, !) => {}

Use in de-structuring(allows you to capture further along a tuple without
creating a named binding):

const [!, setState] = useState(0)
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.mozilla.org/pipermail/es-discuss/attachments/20190111/ffbe5a8e/attachment.html>


More information about the es-discuss mailing list