3 ms·
No he's talking about memory management and the notion of some shortcut pointing to it. Typescript with pointers (that do pointer arithmetic) and no extra memo
by deltasevennine 4y ago
No he's talking about memory management and the notion of some shortcut pointing to it.
Typescript with pointers (that do pointer arithmetic) and no extra memory management facilities doesn't make any sense. He's not referring to this.
- jmillikin 4y ago> Typescript with pointers (that do pointer arithmetic) and no extra > memory management facilities doesn't make any sense. That's pretty close to what Go offers. It seems to be quite a popular choice for people who occasionally need manual memory management but are mostly willing to let the compiler handle things. It's pretty obvious that the OP is asking why a language like Rust needs to have a more complex syntax/semantics than TypeScript, and the answer has nothing to do with manually allocating buffers.
- UncleEntity 4y agoI would argue that most of the complexity in low-level languages comes from herding references to memory locations (pointers and whatnot). There’s no reason TypeScript couldn’t be built on top of manual memory management and the concept of raw access to memory locations but I suspect it would start looking a lot like C with just a different syntax for type declarations.