-
Notifications
You must be signed in to change notification settings - Fork 22
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
Should Dump and Load encode/decode UTF-8? #11
Comments
Sounds sane to me |
My position, as I've stated on the #yaml channel on irc.perl.org, is as follows:
Whatever decision is taken, all existing YAML implementations should become consistent. For those whose Dump/Load API is changing, I would recommend major version bumps. |
And wrt to timing, as there are other potentially incompatible changes for YAML::Tiny 2.00, I would like this API decision to be made "soon" (by January) so we don't have multiple major version bumps in short sequence. I would like YAML::Tiny 2.00 to be a cleaned-up, consistent version of what we have now. Whenever the new OO YAML.pm is considered final and stable, YAML::Tiny may then consider following suit as 3.00 (or it may not do so right away if the OO API is too great a departure from YAML::Tiny's existing OO API) |
I agree that both interfaces should be available: characters or octets. If there is a common standard for all YAML libraries everywhere to which other Perl libraries will be adapter, let's use it. Otherwise, let's stick with what we do now. I am only familiar with Perl and Python's YAML, and from Python's PyYAML, we can learn nothing, because there is a clearer distinction between types of strings. |
01:15 < ingy> xdg: I have a rough plan formulating in my head |
I poked at this last night after having a test fail that was using Test::Deep::YAML with a META.yml with a unicode canary in
For comparison, JSON::Any's |
Historically, YAML::Tiny's read_string/write_string were essentially character-based and I'd like to leave them that way.
However, Dump/Load are inconsistent with other YAML modules (which are themselves inconsistent).
Ingy has said that the YAML::XS approach of Dump/Load is probably the path forward:
Should we make this change for 2.00?
The text was updated successfully, but these errors were encountered: