Skip to content

Instantly share code, notes, and snippets.

@jaawerth
Created October 7, 2021 23:31
Show Gist options
  • Save jaawerth/9407ed48c6f1e11941d0e431a8f1c140 to your computer and use it in GitHub Desktop.
Save jaawerth/9407ed48c6f1e11941d0e431a8f1c140 to your computer and use it in GitHub Desktop.
{:wat #(match $
1 :ok
2 :ok
3 :ok
4 :still-ok
5 `(error "That's the combination to my luggage!")
6 :ok-again
_ :ok-ill-stop)}
(import-macros {: wat} :badmacro)
(fn oops [] (wat 5))
(oops)
runtime error: That's the combination to my luggage!
stack traceback:
[C]: in function 'error'
./badmacro.fnl:6: in function ?
[C]: in function 'xpcall'
/usr/bin/fennel:4760: in function ?
[C]: in ?
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment