DEV Community

Discussion on: Why doesn't/didn't C have classes?

Collapse
 
oguimbal profile image
Olivier Guimbal • Edited

That's not exactly true :) All you need to get a Turing-complete language is just some kind of jump instruction, some way to modify memory, a conditional branching operation, and maybe a handful of operations.

ASM has these. But you'll agree that this is not a very practical way of programming these days. OO is one of many higher level concepts that have been developped to handle complexity. The one you're refering to without naming it is Functional Programming. But "just methods" is a bit harsh, and tends to explosion of complexity. You'll also need some FP concepts such as pattern matching, immutability, variadic functions, monads, or whatever solution FP languages came up with.

I'm an advocate of FP, but I would definitevely not recommand using an OO language that does not have those in an "functions only" style on a large codebase. Trust me. Spaghetti code ahead. I've seen that happen enough :/

(ps: watch the talk in my comment, you might like it :) )