RoyalIcing / Orb

Write WebAssembly with Elixir
https://useorb.dev
BSD 3-Clause "New" or "Revised" License
174 stars 1 forks source link

Absorb lesson of do-while loops #10

Open RoyalIcing opened 6 months ago

RoyalIcing commented 6 months ago

Would this tie into syntax like?

loop Hello do
  i = i + 1
end
|> while(i < 10)

I don’t think I want to attempt to optimise all loops into this form, but at least let you express them. I want to keep the level of optimisations that Orb does to a minimum (at least initially), so you can map 1-to-1 with the outputted Wat syntax.