-
Notifications
You must be signed in to change notification settings - Fork 9
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Rearange documentation prioritizing more useful stuff higher #50
Conversation
P.S. super happy to see you're this engaged with this little project ;) |
747c44b
to
b59342f
Compare
You said it just as I was thinking about doing something else, since I have a lot of stuff on my schedule (instead of no lifing mindustry) |
Those are tricky because they're no longer a "simple value" which is held in a single variable. While Unless… perhaps "list" variables point to their length, and when used as a list, they "just" work. Imagine x = [1, 2, 3]
for y in x:
print(y) Could generate (pseudo)
Yeah that's some nice food for thought. |
(Now as for what would happen if you had |
Have you thought about using heap to allocate arrays? |
The heap (memory cells) can only store numbers (so, no strings, or
This prints 1. Removing the It's true, as you point out, infinite variables would not work with dynamic array sizes (since there's no way to refer to a dynamic variable name in mlog). However, tuples are immutable, so the fixed size makes more sense. Maybe lists could only support numbers (implemented via foo = [1, 2, 3] @ cell1 could be made work. Ah, so many ideas! |
Let's move this discussion to the separate issue linked above if you have further comments. |
I was kinda confused first time reading this when I figured out how to run test, but still had no clue how to run compiler itself.
I guess it makes more sense that tests are at the bottom, while description of project and setting up should be higher (even than supported features)