Skip to content
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

base-n literals? #13967

Open
p5pRT opened this issue Jul 3, 2014 · 2 comments
Open

base-n literals? #13967

p5pRT opened this issue Jul 3, 2014 · 2 comments

Comments

@p5pRT
Copy link

p5pRT commented Jul 3, 2014

Migrated from rt.perl.org#122222 (status was 'open')

Searchable as RT122222$

@p5pRT
Copy link
Author

p5pRT commented Jul 3, 2014

From @jhi

(This is a much longer shot than the hexadecimal floats I reported earlier. Not necessarily the most urgent but for .. completeness?)

But while we are on the subject of more bases... quite many languages support literals and input/output bases 2-36 (36 = 10 + 26 ASCIIbets, in lower or upper). No, there are no obvious ways to continue the digits. Base64? Well, which Base64?

Looking over at http​://rosettacode.org/wiki/Literals/Integer

BASErDIGITS

  BASE in decimal, literal 'r', and then the digits, e.g. 7r15 for 12

  Clojure, Common Lisp, Emacs Lisp (#BASErDIGITS)

BASEbDIGITS

  In J, but J is really... different.

:BASE<DIGITS>

  Perl 6, e.g. :3<100110> (really...? that's... weird)

BASE#DIGITS

  PostScript

@p5pRT
Copy link
Author

p5pRT commented Jul 11, 2014

The RT System itself - Status changed from 'new' to 'open'

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants