Should the func keyword be changed to fun?

4 views
Skip to first unread message

Bill Cox

unread,
Mar 19, 2023, 9:02:29 PM3/19/23
to Rune language discussion
Rust uses fn, which to me seems a bit short.  Go uses fun, which sounds more fun.  Rune currently uses func, which sounds funky.  Does anyone have strong feelings about the keyword to defined a function?

Bill

Aiden Hall

unread,
Mar 20, 2023, 8:22:38 AM3/20/23
to Bill Cox, Rune language discussion
I think go uses `func` doesn't it?

I don't see a major difference either way between `func` and `fn`, both are good readable keywords. `fun` seems less desirable to me because it collides with the word "fun" which takes slightly more mental overhead to process. Perhaps there's some psychological benefit to writing that word over and over, but I have no way to quantify or back that speculation up.

I have a slight preference for using `func` over `fn` because that way `fn` can be used as a local variable.

On Sun, Mar 19, 2023 at 9:02 PM 'Bill Cox' via Rune language discussion <rune-d...@googlegroups.com> wrote:
Rust uses fn, which to me seems a bit short.  Go uses fun, which sounds more fun.  Rune currently uses func, which sounds funky.  Does anyone have strong feelings about the keyword to defined a function?

Bill

--
You received this message because you are subscribed to the Google Groups "Rune language discussion" group.
To unsubscribe from this group and stop receiving emails from it, send an email to rune-discuss...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/rune-discuss/CAH9QtQG3wshE5dQtKGeTpn6FR%2BfhBmQV_%2BScaAW%2BNLe0oaLB%2Bw%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.

Bill Cox

unread,
Mar 20, 2023, 8:34:40 AM3/20/23
to Aiden Hall, Rune language discussion
SGTM.  Func it remains.
Reply all
Reply to author
Forward
0 new messages