Search
Star
Feedback
Setup for Free
© 2026 Hedgehog Software, LLC
Twitter
GitHub
Discord
System
Light
Dark
More
Communities
Docs
About
Terms
Privacy
def in Mojo - Modular
M
Modular
•
2y ago
•
4 replies
Sukiru
def in Mojo
When writing a program from scratch
, what does
def
def
bring to the table over
fn
fn
?
Although
def
def
has its benefits and would work well alongside
fn
fn
, in practice
, I don
't see what stops it from being viewed as
"legacy Python
"
Modular
Join
This server is the home of the MAX and Mojo community! Join us to chat about all things Modular.
20,199
Members
View on Discord
Resources
ModelContextProtocol
ModelContextProtocol
MCP Server
Recent Announcements
Similar Threads
Was this page helpful?
Yes
No
Similar Threads
Py def vs Mojo fn
M
Modular / questions
3y ago
Rewrite Mojo in Mojo
M
Modular / questions
3y ago
using mojo in python (not python in mojo)
M
Modular / questions
3y ago
Mojo in CMD.
M
Modular / questions
15mo ago