Originally posted by rclark
View Post
It's fine if you like C, just as it is fine to like assembly, but software really should not be written in C any longer. The restrictions that you abhor actually enable you to do things that were not possible before. For example, before we came up with structured programming, you had the ultimate freedom. You could just set labels and jump everywhere. It led to crazy spaghetti code, but anything was possible, at least anything except the kind of complicated programs that we expect to build today.
It took us restricting ourselves to standard constructs like loops, conditionals, etc. for our code to be comprehensible enough that we could move from simple programs to building more complicated ones. Gnome or KDE would not be possible without them. Now we have even more restrictions with Rust, but the nice thing about them is that we no longer have to track aliasing in our heads and hope for the best. What will Rust enable us to do in the future? Trivial parallelization for one thing.
Comment