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

ud literal and operations #294

Open
giann opened this issue May 29, 2024 · 0 comments
Open

ud literal and operations #294

giann opened this issue May 29, 2024 · 0 comments
Labels
language Issue related to the language proposal Something we consider doing
Milestone

Comments

@giann
Copy link
Collaborator

giann commented May 29, 2024

Event though a ud is stored on the heap and not in a Value, we could imagine being able to write a literal ud value rather than having to do parseUd("..."):

| Literal can be hex, binary or decimal like a regular integer
ud data = @0xffab3adb3298;
ud data = @1239408984;

Maybe @ will collide with free identifiers (@"my identifier")

We could also imagine being able to do everything we can do with an integer with them, even though it would be inefficient:

ud data = @0xffab3 + @1;
@giann giann added language Issue related to the language proposal Something we consider doing labels May 29, 2024
@giann giann added this to the 0.5.0 milestone May 29, 2024
@giann giann changed the title ud literal ud literal and operations May 29, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
language Issue related to the language proposal Something we consider doing
Projects
None yet
Development

No branches or pull requests

1 participant