|
|
|
|
|
by remexre
1109 days ago
|
|
Agree that C is easier to explore the concepts in, but knowing enough C to know why e.g. [0] gets the behavior it does is IMO not useful if the goal is to learn the _concepts_ before switching to a language that doesn't do this kind of thing. So, IMO worth jumping to Rust as soon as you feel confident with the stack vs the heap, use-after-frees, etc. [0]: https://godbolt.org/z/x7bf4edo9 |
|
I mean, why would I expect the parenthesised subtraction to do anything I can rely on? Or did you mean (&ys[2] - &ys[0]) ?