-
Notifications
You must be signed in to change notification settings - Fork 17
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
DO NOT MERGE Upgrade examples to Purity Inference #223
base: main
Are you sure you want to change the base?
Conversation
fyi I added "DO NOT MERGE" so this is held until the basic-cli pre-release becomes a full release |
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.
I can take some of these as well, whoever gets to it first
main = | ||
Stdout.line! (Inspect.toStr (parseNameAndYear "Alice was born in 1990")) | ||
Stdout.line! (Inspect.toStr (parseNameAndYearTry "Alice was born in 1990")) | ||
main! = \_ -> |
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.
In the basic-cli examples we've been using main! = \_args ->
everywhere, I prefer it like that, it's more transparent. What do you think?
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.
Agree... I just never came back to these and made the changes here yet.
|
||
# Generate a list of numbers using the seed and generator provided | ||
# This is NOT cryptograhpically secure! |
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.
Seems like we should keep this 😄
|
||
sum = Task.loop! 0 addNumberFromStdin |
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.
We should rename this example 😄
examples/Tasks/main.roc
Outdated
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.
Need to rename this one as well. The README for this example also needs to be updated.
No description provided.