Touched
Resident ASMAGICIAN
- 625
- Posts
- 10
- Years
- Age 123
- Seen Feb 1, 2018
Moving away from C definitely doesn't mean 'throwing a lot of language design knowledge' — imperative languages aren't the only type out there. Implying that a shift in hardware is required for a shift in language design is like saying that functional and logic-based languages couldn't exist at all, but they do.
I didn't mean to imply that imperative languages were the only types out there. However, imperative is one of the main paradigms. Thus if we lost it, we would be throwing quite a lot (notice I did not say all) of our principles of language design out. Most general-purpose languages today are multi-paradigm and contain a mix of styles - imperative being quite a large component of these languages. Languages that emphasise declarative styles more such as Haskell (Functional) and Prolog (Logic) are pretty niche.
As for the shift in hardware, I was trying to make a point that it would only make sense to depart from imperative programming entirely (in mainstream languages) if the paradigm no longer made sense. I make this point because in the end, all languages are reduced to a byte code which is unstructured and imperative.