.. cascade operator

Man Hoang jolleekin at outlook.com
Wed Oct 10 06:54:36 UTC 2018


This operator should have been added years ago. It would enable many APIs to return more appropriate results instead of `this`.

For example, `Set.prototype.add(value)` could return a boolean indicating if an item was actually added instead of `this`.

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.mozilla.org/pipermail/es-discuss/attachments/20181010/a6e2e98f/attachment.html>


More information about the es-discuss mailing list