john-science / slowloris

A DIY-LISP.
5 stars 3 forks source link

add switch statement #32

Closed john-science closed 10 years ago

john-science commented 10 years ago

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.

john-science commented 10 years ago
(switch 1.0 "first" 2.0 "second" default "last")

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