ModularM
Modular2y ago
13 replies
toasty

Is it possible to convert an Int to a String at comp time?

Hey all, I'm trying to make some comp time friendly structs for my project. I'm struggling with converting an int to a string for some string concatenations. str() does not work at comp time.

Minimal example to reproduce the error.
fn main() -> None:
    alias s = str(1)
Was this page helpful?