-
-
Notifications
You must be signed in to change notification settings - Fork 75
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
Modules, ints, and floats concepts #282
Conversation
// Import the int module | ||
import gleam/int | ||
|
||
pub fn main(x: Int) -> String { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Maybe name these something other than main
? Someone might read this as "the main function in a gleam program returns a String".
Underscores can also be added to floats for clarity. | ||
|
||
```gleam | ||
1_000_000.0 // One million |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
What about after the decimal?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The formatter won't insert underscores there at the moment
Co-authored-by: Giacomo Cavalieri <giacomo.cavalieri2@studio.unibo.it>
No description provided.