Skip to content

Conversation

@lpil
Copy link
Member

@lpil lpil commented Nov 21, 2025

No description provided.

/// The second parameter is the name of the type that has failed to decode.
///
/// ```gleam
/// decode.failure("User", User(name: "", score: 0, tags: []))
Copy link
Contributor

Choose a reason for hiding this comment

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

Should this be inverted?

Copy link
Member Author

Choose a reason for hiding this comment

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

oh yes, thank you.

@inoas-nbw
Copy link

Suggestions:
faux, fake
placeholder communicates that it might be returned IMHO

@lpil
Copy link
Member Author

lpil commented Nov 24, 2025

@inoas-nbw It's not a fake value, it must be a real value of that type. It takes the place of the value that would be successfully extracted.

@lpil lpil merged commit 7c05f3a into main Nov 24, 2025
7 checks passed
@lpil lpil deleted the placeholder branch November 24, 2025 12:03
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.

4 participants