Comments by "p11" (@porky1118) on "The C Programming Language is Over 50 Years Old, So Today I Learned Rust" video.
-
I think, only a language with a similar feature set as C will be able to replace C.
Most important:
* no GC
* static types
* no RAII (like Rust has)
But some things might be improved:
* arrays as function parameters are currently interpreted as pointers
* maybe pointer dereferencing could be simplified (a.b on pointers would just be &a->b, and *a.b would be a->b or (*a).b)
* maybe "loop" like in rust would be a nice addition
* explicit types for every variable are currently necessary and could be removed
And generally, the syntax could be changed a bit, or what I'd prefer, the language should be defined in terms of a tree, and there could be multiple syntaxes for that language (one similar to current C, one simple s expression based like lisp, one indentation based like python, one visual language, etc.)
7
-
3
-
2
-
1