HNHacker News
TopNewBestAskShowJobs

valdirun

19 karma · joined October 10, 2018

submissionscomments
valdirun··on Zolang – A programming language for sharing code between multiple platforms
This is officially my favorite comment
valdirun··on Zolang – A programming language for sharing code between multiple platforms
Yup! The plan is to have all types easily JSON serializable and let the language generate serialization and deserialization methods
valdirun··on Zolang – A programming language for sharing code between multiple platforms
you can do

make i be (i + 1) * (a / b)

as well as

make i be (i + 1) times (a over b)

make i be (i + 1) times (a divided by b)

The choice is yours :)

valdirun··on Zolang – A programming language for sharing code between multiple platforms
I agree. This will be hard to scale to an entire application, I would not recommend using this as of now except for very platform independent logic, but hopefully with new releases and more meta-programming (or perhaps meta-meta-programming) features more usage options could be viable.
valdirun··on Zolang – A programming language for sharing code between multiple platforms
it depends, Zolang doesn't care for this (but it should, and will later on) and just forwards values. So if you're transpiling to languages that have a first index as 1... then yes :'D
valdirun··on Zolang – A programming language for sharing code between multiple platforms
Originally this language was created simply for creating a sharable model layer which can have some embedded logic, so originally I wanted to keep non-programmers in mind while designing this as the model layer is the most basic part of an application and very easy for a non-programmer to understand the concept of.

But you can do (a + (b - c) * d) in Zolang as well, the choice is yours