Re:Show HN: Handel – A procedural programming language for w...
by SamBam on Tuesday January 05, 2021 @01:23PM
(#25648896)
Thinking a little more, I guess I would actually expect it to look a bit more like
save myNote as C1
save myPlayable = myNote for 1b
do
play myPlayable
save myNote as myNote + 1
while (myNote < C2)
(That is, the dot notation looked out of place given your language.)
So by procedural what is meant is that the there are chunks (which are Handel's procedures/functions).
Currently your code snippet can't be replicated in Handel. Looping is accomplished by telling a chunk to loop (giving it a number of times to loop). ex. run somechunk with loop for 100
But there is no arithmetic in the language. Adding arithmetic to playables like you mentioned could be a nice feature