swarm/example
Ondřej Šebek e85bf806c2
Retire raise command (#407)
- remove `raise` command
- rename `error` to `fail` - should suggest both that it is:
  - recoverable - can be caught with `try`
  - pure - `fail: string -> a` - so it can be used outside `cmd`

---

The problem with `raise` was that it was merely a specialized version of `error` (which was not limited to `cmd a`):
```
let raised: string -> cmd a = error in raised "ha"
```
I noticed this while making the list for #26.

On a meta-level, it also conflicts with the `raise` Haskell function we use to throw an error when a command (like `build`) fails.
2022-06-23 11:25:23 +00:00
..
BFS-clear.sw clean up examples 2022-06-11 15:15:07 -05:00
cat.sw clean up examples 2022-06-11 15:15:07 -05:00
dfs.sw clean up examples 2022-06-11 15:15:07 -05:00
fact.sw clean up examples 2022-06-11 15:15:07 -05:00
list.sw Retire raise command (#407) 2022-06-23 11:25:23 +00:00
wander.sw clean up examples 2022-06-11 15:15:07 -05:00