Zuo, aka derived from the Chinese word for “make.”, is an open source programming language created in 2022 by Matthew Flatt.
#2135on PLDB | 2Years Old |
A Tiny Racket for Scripting
#lang zuo/datum
;; The classic toy benchmark
(provide fib)
(define input
(let ([args (hash-ref (runtime-env) 'args)])
(if (null? args)
30
(string->integer (car args)))))
(define (fib n)
(cond
[(= n 0) 1]
[(= n 1) 1]
[else (+ (fib (- n 1)) (fib (- n 2)))]))
(fib input)