New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Backports v4 #139
Comments
|
I wouldn't mind having a nicer API too. E.g.:
That would still be susceptible to forward incompatiblities if the /cc @zverok |
Thinking about it a bit, I'd say this:
So, I think along this lines:
Backports.require! # requires all new methods, no redefinitions
Backports.require!(redefinitions: true) # all new and redefinitions
Backports.require!(redefinitions: true, except: %w[Enumerable#to_h]) # but not that one
Backports.require!(only: %w[Enumerator.produce]) # I am picky today!
Backports.require!(upto: 2.6) # don't take nothing from 2.7 (For some cases, it will also require some reconciliation of "what means what", for example, if somebody asks for |
Backports v4 roadmap:
require 'backports'
a noop (or an error?)ETA: Xmas '20
The text was updated successfully, but these errors were encountered: