Feature #20859
closed
- Related to Bug #20857: Ruby 3.4 seems to have backwards compatibility issues more than its predecessors added
Just FTR, some usage of base64 was already removed, but I think that other projects already added the base64 dependency (or are about to add it 1).
Why make it built-in all at once, rather than moving it back to the standard library?
- Description updated (diff)
I also think the general sentiment about this extraction is that the dependency is too small to justify adding it. For most users it's pretty much a one liner.
That said, is there a problem in just keeping it as a "default gem"? Now that it has a ::VERSION
constant etc, seems like the simplest thing to do.
I think these are two separate issues, so maybe better implement/discuss in two separate steps?
- One would be something like "Making
base64
a bundled gem caused too much trouble, let's revert that". This seems straightforward to fix.
- Another one would be something like "Base64 is too small and basic to justify being a gem and not just a core builtin class". This seems more tricky and would involve moving it to a core class, making the gem a noop if the core class exists as @hsbt (Hiroshi SHIBATA) suggested, and I guess printing some deprecation warning in this case, so that the explicit dependency is removed?
My understanding is that default gems are transitional to eventually being promoted to bundled gems. So, I didn't think there was an option to make it a default gem permanently. As a matter of fact, mirroring repositories is a pain.
In terms of base64, it is not expected to add any features in the future, and it is quite unlikely that it will be even updated. (I am the current maintainer of base64 gem.) And it is a very small library.
Therefore, I do not think it is worth making it a bundled gem. I think it would be better to make it built-in or revert to the standard library (not a default gem).
(I am not opposed to reverting back to the default gem as a temporary measure, since we are close to release.)
I agree with everything you said @mame (Yusuke Endoh). I didn't know the final goal of gemification of the standard library was to make all default gems either stdlib or bundled gems. I like that and I support it.
- Status changed from Assigned to Rejected
Matz is negative for this proposal. I withdraw this.
Also available in: Atom
PDF
Like0
Like0Like0Like0Like0Like0Like0Like0Like1Like0Like0