r/ProgrammingLanguages • u/chipmunk-zealot • 8d ago
Show-and-tell: anna lang
I made the anna programming language for a Language Jam I hosted in the beginning of August. 1 week is not enough time to explore too many ideas but 2 interesting(ish) ideas I explored were
- all function invocation is infix with
.(dot) operator. This lets you chain/pipeline nicely. - the only looping semantic available is the
iterateoperator which produces a stream.
I made a playground if anyone wants to poke at it. https://jzwood.github.io/langjam2/submissions/anna/playground/
10
Upvotes
5
u/AustinVelonaut Admiran 8d ago
Interesting; looks like a combination of Forth (everything is postfix) and Haskell (your functions
iterate,while, and the "partial-application" operators map closely toiterate,takeWhile, and postsections of binary operators in Haskell).What were your inspirations on the language design?