Languages Features Creators CSV Resources Challenges Add Language
GitHub icon

Bayer Expressions

Bayer Expressions - Data notation

< >

Bayer Expressions is a data notation created in 2018 by Dave Bayer.

#2510on PLDB 5Years Old 0Books

An alternative notation for S-Expressions that uses fewer parentheses. As described by the creator: Indentation implies parentheses. A pipe "|" opens a parenthesis that auto-closes at the end of that line or at the next ")". A dollar "$" opens a parenthesis that auto-closes when the indentation recovers. The result has a lighter, more poetic look than any language I know, and the parentheses that are left actually matter, so I pay attention to them.

Example from the web:
define | edge? g e let $ es | edges g e2 | reverse e or (member e es) (member e2 es)
daonode.html 路 bayer-expressions.html 路 edscript.html

View source

- Build the next great programming language Search Day 213 About Blog Acknowledgements Traffic Traffic Today GitHub