Hacker Timesnew | past | comments | ask | show | jobs | submitlogin

I think C is an exceptional good language for a long time, but the world is changing and maybe C must evolve with new trends, new researches in programming languages.

In my view C and C++ now almost different languages with a different philosophy of programming, different future, and different language design.

It will be sad if "modern" C++ almost replace C. Many C++ developers use "Orthodoxy C++" https://gist.github.com/bkaradzic/2e39896bc7d8c34e042b, and this shows that people will be more comfortable with C plus some really useful features(namespaces, generics, etc), but not modern C++. I very often hear from my job colleagues and from many other people who work with C++ is how terrible modern C++ (https://aras-p.info/blog/2018/12/28/Modern-C-Lamentations/, https://www.youtube.com/watch?v=9-_TLTdLGtc) and haw will be good to see and use new C but with some extra features. Maybe time to start thinking about evolution C, for example:

  - Generics. Something like generics in Zig, Odin, Rust. etc.
  - AST Macros. For example Rust or Lisp macroses, etc.
  - Lambda
  - Defer statement
  - Namespaces
What do you think?

https://ziglang.org/documentation/master/#Generic-Data-Struc...

https://odin-lang.org/docs/overview/#parametric-polymorphism

https://doc.rust-lang.org/rust-by-example/generics.html



Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: