buzz icon indicating copy to clipboard operation
buzz copied to clipboard

`ud` literal and operations

Open giann opened this issue 1 year ago • 0 comments

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 avatar May 29 '24 12:05 giann