Skip to content

How does this compare to other polyfills? #1

Answered by Tyrrrz
slang25 asked this question in Q&A
Discussion options

You must be logged in to vote

Hi @slang25.

All of these libraries more or less do the same thing, but have slightly different design philosophies.

PolySharp was the first of the three libraries. It uses a source generator to provide polyfills, which in theory could be really powerful (i.e., trimming out polyfills that are not referenced by user code), but I'm not sure if Sergio did anything elaborate with that. It also originally started as polyfill library only for compiler plumbing code (mostly various attributes, IsExternalInit, and other stuff). I created a suggestion to expand that to also polyfill instance methods, but I think Sergio wasn't really found of the idea.

Then came Polyfill by Simon which was basicall…

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@Tyrrrz
Comment options

Answer selected by slang25
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants