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
Yeah, it works on Nightly and the code does not look too bad.
But this approach has the following disadvantages:
hex::<"abcdef">() is... not great. Introducing a wrapper macro partially solves the issue, but ideally we would use const arguments. Unfortunately, it's highly unlikely that they will be added to the language. :(
Error diagnostics are much worse. We can not even panic with message which includes encountered invalid character. With macros we potentially can point the exact place which triggers an error.
hex-literal
is quite stable, with v0.3.0 being release over two years ago. So I think we can start to consider v1.0 release.Potential changes:
hex-literal
edition without breaking downstream builds and maybe incorporate new language features.const {}
expressions to force const evaluation (MSRV 1.79).generic_const_exprs
andadt_const_params
? It would allow us to write:The text was updated successfully, but these errors were encountered: