-
Notifications
You must be signed in to change notification settings - Fork 123
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
Unable to Write Numbers in Unusual Bases #179
Comments
Yes, I've pointed out this problem here within the office. I'm of the opinion that all pretty-printed values should be able to be parsed and type-checked at the same type. There is a related issue that has to do with #30: The pretty printer will happily print literals of odd sizes as ordinary hex literals; e.g. |
We discussed restricting :set base=, or just fixing the parser. If it's low-hanging fruit, let's fix the parser, if not, let's restrict the base. Brian points out that we need to decide whether any of these constants have fixed-widths (like hex does). The yak of whether hex constants should reared its head, but let's avoid going too far. |
I can write up a pull request for this issue if you would still like it patched up. Has there been any more discussion about what route you'd like to take for this issue? Restricting the base seems straightforward and lines up with the docs. |
Would anyone object if I restricted the base to be one of 2, 8, 10, or 16? It seems to me that output in other bases is more of a gimmick than a useful feature. I will also update the documentation to match. |
I do not object.
…On Thu, Jul 12, 2018 at 8:00 AM brianhuffman ***@***.***> wrote:
Would anyone object if I restricted the base to be one of 2, 8, 10, or 16?
It seems to me that output in other bases is more of a gimmick than a
useful feature. I will also update the documentation to match.
—
You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub
<#179 (comment)>,
or mute the thread
<https://github.com/notifications/unsubscribe-auth/AAdOv9dx1G2pGuHPByAwEz-10n-4Pzqsks5uF2SVgaJpZM4Dpn9O>
.
|
Seems reasonable to me. |
Agreed. The only other base I might consider is base 64 since that's an encoding that people actually use sometimes for certs and such... but it isn't covered by the current "up to base 36" system anyway. |
As demonstrated below, it's possible to set output to print non-standard bases, but not, apparently, to input them. Another instance where output is not copy-paste-able, but maybe should be?
The text was updated successfully, but these errors were encountered: