Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

the name fun vs function #55

Closed
mikkifr opened this issue Jul 13, 2018 · 5 comments
Closed

the name fun vs function #55

mikkifr opened this issue Jul 13, 2018 · 5 comments
Labels
question Further information is requested

Comments

@mikkifr
Copy link

mikkifr commented Jul 13, 2018

Is there a reason why functions are call "fun" but things like components, modules, and records are not called "com", "mod" and "rec?"

@gdotdesign
Copy link
Member

The its called fun instead of function because:

  1. it's more common then the other entity type keywords (component, module, record, etc...)
  2. it's the same number of characters as get so the most used entities in a component / module / store fun and get line up
  3. as an abbreviation is pretty clear while com, mod and rec are not

@kvnxiao
Copy link

kvnxiao commented Jul 13, 2018

👍 for choosing fun because it reminds me of kotlin :^)

@kingsleyh
Copy link

I agree - fun is a nice easy short name for something we use a lot.

@gdotdesign
Copy link
Member

Closing since people are OK with the fun keyword. Added the question to the README.

@handicraftsman
Copy link

mod is pretty ok for me. It's also used in rust.

@Sija Sija added the question Further information is requested label Jul 2, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
question Further information is requested
Development

No branches or pull requests

6 participants