-
-
Notifications
You must be signed in to change notification settings - Fork 33
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
Decimal number displayed differently #108
Comments
❯ nix run nixpkgs#go-jsonnet -- -e "std.manifestJson(0.97)" ❯ nix run nixpkgs#jsonnet -- -e "std.manifestJson(0.97)" ❯ cargo run -- -e "std.manifestJson(0.97)" Well... It looks like an inconsistency, but I wonder how/should it be fixed in jrsonnet? |
This turns out to be more interesting than I expected, @sparkprime wdyt? |
FYI, I've brought this up on the #jsonnet Slack channel on Kubernetes public Slack, Dave found more inconsistencies. |
My preference would be for the shortest exact string. There was no way to do that in C++ and we matched that behaviour in Go. Given we're trying to move people off of C++ to Go it may be a good time to switch Go over to the shorter output. |
I've made an upstream issue (google/go-jsonnet#718), I think it should be fixed there, closing this issue. |
Just a difference I found but this time I actually like this change but it does make it harder to switch back/forth between versions. Perhaps this is something that needs fixing in the go version? 🤷
The text was updated successfully, but these errors were encountered: