haumea-lang / haumea-rs

Haumea is an experimental language designed to be simple and easy to learn and program in.
MIT License
7 stars 2 forks source link

Add loops #1

Closed BookOwl closed 7 years ago

BookOwl commented 7 years ago

Shouldn't be too hard.

BookOwl commented 7 years ago

PR #7 adds this, but I'm leaving this open to remind me to document them.

bates64 commented 7 years ago

Regarding #4, Arrays could utilise for..of loops:

myarray = [1, 2, 3, 4]
for value of myarray do
  print value ? idk what the syntax is
end
BookOwl commented 7 years ago

That's the plan. Once I add Arrays, I'll make ... to ... by ... an expression that returns an Array.

BookOwl commented 7 years ago

I documented the loops in the wiki, so I'm closing this.