Groups
Sign in
Groups
ceylon-users
Conversations
About
Send feedback
Help
Binary magnitudes for numeric literals
45 views
Skip to first unread message
Arsenii A.
unread,
Jul 14, 2015, 11:26:56 PM
7/14/15
Reply to author
Sign in to reply to author
Forward
Sign in to forward
Delete
You do not have permission to delete messages in this group
Copy link
Report message
Sign in to report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to ceylon...@googlegroups.com
Hi!
Wouldn’t it be nice to allow numeric literals like 512Ki or 4Gi (
https://en.wikipedia.org/wiki/Binary_prefix
) in some future version of Ceylon?
Gavin King
unread,
Jul 15, 2015, 6:25:27 AM
7/15/15
Reply to author
Sign in to reply to author
Forward
Sign in to forward
Delete
You do not have permission to delete messages in this group
Copy link
Report message
Sign in to report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to ceylon...@googlegroups.com
We could easily support that, but do you have a specific usecase in
mind? I can't particularly think of anywhere this would be useful.
Open a feature request in ceylon-spec if you like...
> --
> You received this message because you are subscribed to the Google Groups
> "ceylon-users" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to
ceylon-users...@googlegroups.com
.
> To post to this group, send email to
ceylon...@googlegroups.com
.
> Visit this group at
http://groups.google.com/group/ceylon-users
.
> To view this discussion on the web visit
>
https://groups.google.com/d/msgid/ceylon-users/0e3c9110-9b87-4531-b802-399498c5123e%40googlegroups.com
.
> For more options, visit
https://groups.google.com/d/optout
.
--
Gavin King
ga...@ceylon-lang.org
http://profiles.google.com/gavin.king
http://ceylon-lang.org
http://hibernate.org
http://seamframework.org
Arsenii A.
unread,
Jul 15, 2015, 9:40:11 AM
7/15/15
Reply to author
Sign in to reply to author
Forward
Sign in to forward
Delete
You do not have permission to delete messages in this group
Copy link
Report message
Sign in to report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to ceylon...@googlegroups.com
You’re right, by now I can’t think up a reasonable use case. One could write
Integer
someHardcodedOrDefaultLengthLimit
=
3Mi
;
but that default value is pretty unnatural on its own (why not 30571111 instead?)…
OK, if I come up with something better, I’ll make a feature request.
Reply all
Reply to author
Forward
0 new messages