2 ms·
This proposal has been around for a while. I try keeping an open mind, since I've been wrong about many other syntactic features... But I just don't see this be
by TheAceOfHearts 10y ago
This proposal has been around for a while. I try keeping an open mind, since I've been wrong about many other syntactic features... But I just don't see this being that useful; none of the examples seem particularly compelling.
It's also worth noting that most (?) modern browsers already bind log to console. At least Chrome, Firefox, and Safari all support it. I don't have a Windows machine so I can't confirm if Edge supports it. Same goes for Node.
[1, 2, 3].forEach(console.log)
- terinjokes 10y ago> It's also worth noting that most (?) modern browsers already bind log to console. And it should be in all modern browsers soon[1], as `window.console` is now a namespace: https://console.spec.whatwg.org/#console-namespace https://console.spec.whatwg.org/#console-namespace [1]: https://developer.microsoft.com/en-us/microsoft-edge/platform/issues/9392959/ https://developer.microsoft.com/en-us/microsoft-edge/platfor...