use case: compose and decompose integers #526
Labels
enhancement
Solving this issue will likely involve adding new logic or components to the codebase.
Milestone
Would have been useful for #375 parse and print floats
This almost works. It's blocked only by needing the
@field
builtin (#383) and having to work around #280.I think it's a demonstration of a valid use case of using
var
and var args for arguments, althoughI might change it so that
composeInt
takes a struct in the same way thatdecomposeInt
does, then it wouldn't use var args.If I did it with a struct instead of var args:
At this point though, isn't just using a
packed struct
better?This is clearly the best option. I'm still going to file this issue though as a point of reference.
The text was updated successfully, but these errors were encountered: