Languages Features Calendar About Lists Add Language
GitHub icon



Bel is a programming language created in 2019 by Paul Graham.

#1011on PLDB 3Years Old

Example code from the web:

; Bel in Bel. 9 October 2019, 9:14 GMT (def no (x) (id x nil)) (def atom (x) (no (id (type x) 'pair))) (def all (f xs) (if (no xs) t (f (car xs)) (all f (cdr xs)) nil)) (def some (f xs) (if (no xs) nil (f (car xs)) xs (some f (cdr xs)))) (def reduce (f xs) (if (no (cdr xs)) (car xs) (f (car xs) (reduce f (cdr xs))))) (def cons args (reduce join args)) (def append args (if (no (cdr args)) (car args) (no (car args)) (apply append (cdr args)) (cons (car (car args)) (apply append (cdr (car args)) (cdr args)))))

Language features

Feature Supported Example Token
Print() Debugging prn
; A comment
Line Comments
; A comment
Semantic Indentation ϴ

Article source

PLDB - Build the next great programming language. v5.0.0 - Acknowledgements · Email · GitHub