mirror of
https://github.com/swarm-game/swarm.git
synced 2024-10-27 10:04:12 +03:00
e85bf806c2
- 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. |
||
---|---|---|
.. | ||
BFS-clear.sw | ||
cat.sw | ||
dfs.sw | ||
fact.sw | ||
list.sw | ||
wander.sw |