You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Go constants are larger than int ("Represent integer constants with at least 256 bits." https://go.dev/ref/spec#Constants). If you try to use .Lit with even int64, jennifer makes it a typed constant.
Maybe .Lit should support math/big, and just insert the stringification as literal value -- those non-builtin types can never be typed constants, so there's no other possible interpretation.
The text was updated successfully, but these errors were encountered:
I don't think this is a huge problem in real-world usage... Probably not big enough to further complicate the library. If you really need to emit a numeric const that overflows int, you could kludge it with Id - something like:
Go constants are larger than
int
("Represent integer constants with at least 256 bits." https://go.dev/ref/spec#Constants). If you try to use.Lit
with evenint64
, jennifer makes it a typed constant.Maybe
.Lit
should support math/big, and just insert the stringification as literal value -- those non-builtin types can never be typed constants, so there's no other possible interpretation.The text was updated successfully, but these errors were encountered: