Search
Star
1.4k
Feedback
Setup for Free
M
Modular
•
2y ago
Aziz
Printing at compile time
How to print at compile time
? Something that looks like the following code
, which currently does not compile
:
fn main(): alias n = 99 print["Compiling with n = ", n]()
fn main(): alias n = 99 print["Compiling with n = ", n]()
Modular
Join
This server is the home of the MAX and Mojo community! Join us to chat about all things Modular.
20,311
Members
View on Discord
Resources
ModelContextProtocol
ModelContextProtocol
MCP Server
Recent Announcements
Similar Threads
Was this page helpful?
Yes
No
© 2026 Hedgehog Software, LLC
Twitter
GitHub
Discord
System
Light
Dark
More
Communities
Docs
About
Terms
Privacy
fn
main
()
:
alias n
=
99
print[
"Compiling with n = "
, n]()
fn
main
()
:
alias n
=
99
print[
"Compiling with n = "
, n]()
No replies yet
Be the first to reply to this message
Join
Similar Threads
Compile time facilities
M
Modular / questions
15mo ago
Compile Time UUID
M
Modular / questions
2y ago
Compile time properties?
M
Modular / questions
3y ago
Compile time `U8`
M
Modular / questions
3y ago