News for hackers. Stuff that matters.
Re:JavaScript in Parallel: Web Workers and SharedArrayBuffer by bartread on Saturday March 04, 2017 @06:47AM (#13790485)
Yeah, this ticked me off as well because the use of Web Workers feels extremely un-idiomatic, but what you've said makes sense. If you just passed a function it might dupe people into thinking closures would work or, and this is perhaps worse, force the standard down the route of copying all the values available in the current closure into the worker's scope, which just sounds like a terrible idea to me.

There are no comments on this comment yet.