Haku: A toy functional programming language based on literary Japanese

# · 🔥 105 · 💬 33 · one month ago · codeberg.org · sohkamyung
Is Haku for you? Haku lets you write programs that look very much like written Japanese. So you need to be familiar with written Japanese to program in Haku. Haku is an experiment, not a practical programming language. To run Haku you'll need to install the Raku programming language. Kuwaeru kazutachi samu = if length kazutachi == 0 then samu else let kazu:nokokazutachi = kazutachi shinsamu = samu + kazu in kuwaeru nokokazutachi shinsamu Language guide Haku is a simple, mostly-pure, implicitly typed, strict functional language. The main motivation for Haku is the difference in grammar between Japanese and most Indo-European languages. An interesting question is if an experienced programmer who does not know Japanese could understand a Haku program; or if not, what the minimal changes would be to make it understandable.
Haku: A toy functional programming language based on literary Japanese



Archive | Send Feedback | WebAssembly Version (beta)