Skip to content

misc improvements examples#433

Merged
Anton-4 merged 1 commit into
mainfrom
misc-improvements-examples
Jul 20, 2026
Merged

misc improvements examples#433
Anton-4 merged 1 commit into
mainfrom
misc-improvements-examples

Conversation

@Anton-4

@Anton-4 Anton-4 commented Jul 19, 2026

Copy link
Copy Markdown
Collaborator

No description provided.

Comment thread examples/random.roc
random_u32 = Random.seed_u32!()?
Stdout.line!("Random U32 seed is: ${random_u32.to_str()}")?
# TODO link to example showing how to use the seed values to generate random numbers

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

roc-random is mature now... we could use that package here

Comment thread examples/sqlite-basic.roc

# A row decoder is `List(Str) -> (Stmt => Try(a, err))`; the new compiler does not
# support the record-builder (`<-`) sugar, so we combine the leaf decoders by hand.
# support the old record-builder (`<-`) sugar, so we combine the leaf decoders by hand.

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I wouldn't mention the old syntax at all. I think most people will not be familiar with that, and the people that are will not need this explained.

@Anton-4

Anton-4 commented Jul 20, 2026

Copy link
Copy Markdown
Collaborator Author

Thanks for the review Luke, I will apply your feedback in my next PR.

@Anton-4
Anton-4 merged commit 66d9323 into main Jul 20, 2026
23 checks passed
@Anton-4
Anton-4 deleted the misc-improvements-examples branch July 20, 2026 13:48
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.

2 participants