1. No cpp
2. No auto and templates
3. No exceptions
4. POD structs
5. Classes without inheritance
6. Compile time if
7. Modules
8. void* renamed to a box or something sane
9. Better RTTI
10. No references
11. No lambda, function objects are good enough
12. Better threads and co-routines

This gets C++ quite close to go and D.

Fixing C

1. Simpler pointers
2. Standardised types
3. Pattern matching
4. Rust like semantics
5. Better variable names, kebab case, simpler modules
6. Optional gc
7. Defer
8. Expose stack
8. Cleaner declaration
9. Remove declarations … create opaque interfaces from .c file
10. Co-routines
11. Better stdlib
12. Compulsory bounds checking

This is quite close to safe D.

s
search
c
compose new post
r
reply
e
edit
t
go to top
j
go to the next post or comment
k
go to the previous post or comment
o
toggle comment visibility
esc
cancel edit post or comment
0
Would love your thoughts, please comment.x
()
x