Stream: contributing

Topic: Result chaining code example


view this post on Zulip Aurélien Geron (Aug 01 2024 at 06:09):

Hi Roc-ers!

As a Roc newbie I struggled a bit to understand how to chain functions that return Result. The code examples contain some error handling, but mostly at the Task level. For Result, the examples are a bit scattered, so I propose to add a new code example dedicated to Results, and particularly chaining functions that return Result.

I submitted PR #191, please let me know what you think. Disclaimer: I'm really a beginner, so my code is likely to be flawed. Hopefully with your help it can become good enough, and useful to other newbies.

view this post on Zulip Brendan Hansknecht (Aug 01 2024 at 15:58):

Added some review comments


Last updated: Jul 05 2025 at 12:14 UTC