Which function definition keyword do you prefer, def or fn?
I'm curious about what people think of `def` vs `fn`, two short keywords for starting function definitions.
...Or maybe we should subscribe to the church of `df`, haha.
👤 johncoltrane Accepted Answer ✓
"def" is too generic.
"fn" is too cryptic.
"function" is better than the two.
👤 sitkack
def could be for lots of things, fn is for functions. I don't think it matters much as long as you have one. C would have been so much easier to parse. Just copy Zig or Rust.