by Zababa · 5y ago · 0 comments
> Senegal is a powerful, small-but-fast, concurrent, class-based, and dynamically-typed programming language with a modern syntax.
I think the closest thing to it is Wren? https://wren.io/. The difference being that Senegal is compiled and Wren is interpreted.
A few things of interest:
- there are exceptions
- you can call some C code: https://lang-senegal.web.app/docs/cimport
- you can "enhance" (monkey patch?) classes: https://lang-senegal.web.app/docs/enhance
- classic C-style for, while, switch keywords
- there's a pipeline operator, but it's <| https://lang-senegal.web.app/docs/pipeline
- the reference to "switch statements" probably means that switch and if are statements, not expressions
Senegal seems to use a bytecode interpreter: https://github.com/SenegalLang/Senegal/blob/22fe863ad234e43a...
> maybe it's still under construction and the person that posted it just found it too early. But once you're ready to show it to the world, please include the why!
So I don't think we disagree here.
> The owner of this repo owes absolutely nothing to random commenters on HN.
It's not about "owing" anything to anyone, it's about giving useful feedback. If the language has no way to do IO, and nowhere it says that it's a feature, I would have included the lack of IO in my feedback. The author is free to ignore my feedback, just like I'm free to give constructive feedback.