Added more compiler sugar for lists:
list[index] replaces list::itemAt(list, index)
list[index] = ...; replaces list::replace(list, item, index)
for(type name in list) {} replaces
int len = list::length(list);
int i = 0;
while (i < len) {
type name = list::itemAt(list, i);
i = i + 1;
}
(i am not proud of the shitcode that was used to get for(type name in list) working)
Comments 0
No comments yet. Be the first!
Sign in to join the conversation.