News for hackers. Stuff that matters.
Re:Show HN: Handel – A procedural programming language for w... by SamBam on Tuesday January 05, 2021 @09:11AM (#25645647)
This looks wonderful.

I may be missing it from the description, but when I think "procedural" I think that I should be able to change the variables with math, or at the very least increment variables. Are there any examples of that?

For example, I would think I could play a scale with something like

    save myPlayable = C1 for 1b
    do
      play myPlayable
      myPlayable.note++
    while (myPlayable.note < C2)
Re:Show HN: Handel – A procedural programming language for w... by ddj231 on Tuesday January 05, 2021 @12:18PM (#25647841)
Thanks!

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

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.)