exercism / exercism/configlet

Refactor: Raise exceptions, rather than using a deep `quit`

Open
#123 0 comments 0 reactions 0 assignees View on GitHub
kind: refactor
Dominant language
Nim
Stars
23
Forks
17
Avg merge
13h 57m
Merged PRs (30d)
1

Description

This isn't just a Nim thing.

Background:
https://forum.nim-lang.org/t/4042

As an example, the below code doesn't echo:
```Nim
try:
quit(0)
finally:
echo "hi"
```

(Try in the Nim playground [here](https://play.nim-lang.org/#ix=2M5W)).

For one better design, see [`check_uuids.nim`](https://github.com/exercism/nim/blob/be1382016edd67eb04f35a4468286517135b6bd2/_test/check_uuids.nim#L349-L355) from the `exercism/nim` repo.

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.