john-science / slowloris

A DIY-LISP.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

add switch statement

john-science opened this issue · comments

We need a switch or elif functionality, to make the language more flexible. It might just be syntactic sugar. But it's SUPER common, and save from a lot of multiple embedding.

(switch 1.0 "first" 2.0 "second" default "last")

(switch
    1.0 "first"
    2.0 "second"
    default "last")