Re:Gleam v1.12.0 Released
by samdoesnothing on Wednesday August 06, 2025 @05:19PM
(#44817982)
Good Go code also wraps errors...
It's not just about wrapping. use-expressions, result.try and result.map eliminate the boilerplate of checking for errors entirely: https://erikarow.land/notes/using-use-gleam
Re:Gleam v1.12.0 Released
by samdoesnothing on Wednesday August 06, 2025 @07:15PM
(#44818937)
One man's boilerplate is another man's explicitness.
The beauty here is being compelled to handle both the happy and sad paths. You cannot just pretend the sad path doesn't exist.