#Elegant way to exit with specific exit code but continue to process the remaining data

1 messages · Page 1 of 1 (latest)

mossy slate
#

I need to process a file and print to stderr if have errors.
My question is how can i exit my program with specific code(if i wrote to stderr) without managing state for it?

frozen kelp
#

Gleam doesn't have any implicit mutable state like that