News for hackers. Stuff that matters.
Re:Pipelining might be my favorite programming language feature by hoppp on Monday April 21, 2025 @09:55AM (#43752066)
Cool I love it, but another thing we will need polyfills for...
Re:Pipelining might be my favorite programming language feature by bobbylarrybobby on Monday April 21, 2025 @09:58AM (#43752085)
How do you polyfill syntax?
Re:Pipelining might be my favorite programming language feature by jononor on Monday April 21, 2025 @10:05AM (#43752161)
Letting your JS/TS compiler convert it into supported form. Not really a polyfill, but it allows to use new features in the source and still support older targets. This was done a lot when ES6 was new, I remember.
Re:Pipelining might be my favorite programming language feature by zdragnar on Monday April 21, 2025 @10:55AM (#43752689)
Polyfills are for runtime behavior that can't be replicated with a simple syntax transformation, such as adding new functions to built-in objects like string.prototype contains or the Symbol constructor and prototype or custom elements.

I haven't looked at the member properties bits but I suspect the pipeline syntax just needs the transform to be supported in build tools, rather than adding yet another polyfill.

Re:Pipelining might be my favorite programming language feature by hathawsh on Monday April 21, 2025 @03:22PM (#43755484)
I believe you meant to say we will need a transpiler, not polyfill. Of course, a lot of us are already using transpilers, so that's nothing new.