|
|
|
|
|
by sse
1901 days ago
|
|
"performance and control of C" also means that you can make datastructures with arbitrary pointers, right? The simplest example that doesn't work in rust is a linked list. How can you do that when you only have multiple stacks, but no heap? |
|
In high-level Dawn, it's basically the same as in Haskell:
The first compiler will be quite simple and will produce roughly the equivalent of the above Rust implementation.As for cyclic doubly-linked lists and arbitrary cyclic graphs, I'll describe how those will work in a future post.