Show HN: Gojju, a Fun Programming Language
13 points| init0 | 1 month ago |hemanth.github.io
- Python: List comprehensions, slicing
- Ruby: #{interpolation}, postfix if, blocks
- Haskell: |> pipe operator, lambdas \x -> x+1, Maybe/Either
- Perl: unless/until, regex literals
- JavaScript: Arrow functions =>, spread ...
Example:
[1, 2, 3, 4, 5]
|> filter(\x -> x % 2 == 0)
|> map(\x -> x * 2)
|> sum
Install: `pip install gojju`The name "Gojju" (ಗೊಜ್ಜು) means "essence" or "secret ingredient" in Kannada.
Would love feedback on the syntax choices!
vx_r|1 month ago
az09mugen|1 month ago
It's purely personal, by reading "Features at a glance" there is the interpolation of Ruby that I really don't like, I prefer by far the f-strings of python. And I don't think I'll be using unless and until that much (aren't they also Ruby ?). Again that's just IMHO.
If I had more skills in writing parsers and tokenizers, that's probably a project I'd do.
Nice job !
kseistrup|1 month ago
In the long run it would probably nice with a switch or an environment variable to make the banner less intrusive.
The license file seems to be missing.
az09mugen|1 month ago
olya_pllkh|1 month ago
[deleted]