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

Modules, ints, and floats concepts #282

Merged
merged 15 commits into from
May 9, 2023
Merged

Modules, ints, and floats concepts #282

merged 15 commits into from
May 9, 2023

Conversation

lpil
Copy link
Sponsor Member

@lpil lpil commented May 8, 2023

No description provided.

@lpil lpil changed the title Modules concept Modules, ints, and floats concepts May 8, 2023
@lpil lpil marked this pull request as ready for review May 8, 2023 15:54
// Import the int module
import gleam/int

pub fn main(x: Int) -> String {
Copy link
Contributor

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".

concepts/floats/.meta/config.json Outdated Show resolved Hide resolved
Underscores can also be added to floats for clarity.

```gleam
1_000_000.0 // One million
Copy link
Contributor

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?

Copy link
Sponsor Member Author

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

lpil and others added 2 commits May 8, 2023 19:26
Co-authored-by: Giacomo Cavalieri <giacomo.cavalieri2@studio.unibo.it>
@lpil lpil merged commit c440fa3 into main May 9, 2023
@lpil lpil deleted the imports branch May 9, 2023 10:28
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants