4 ms·
Who here thinks they should have made "an object-oriented C" instead? I was under the impression that a big part of C's success (as a lingua france / lowest com
by jstimpfle 9y ago
Who here thinks they should have made "an object-oriented C" instead? I was under the impression that a big part of C's success (as a lingua france / lowest common denominator) is its minimalism. It forces only a few concepts on its users.
- FractalNerve 9y agoNot sure if it was used in Stuxnet, but an OOC compiler already exists [1] :) [1] https://ooc-lang.org/ https://ooc-lang.org/
- pjmlp 9y agoA big part of C's success was being a requirement for UNIX systems programming, with 80's startups (Sun, SGI,...) adopting an almost free of charge OS, with source code available, for their workstations.
- mpweiher 9y ago> "an object-oriented C" ... minimalism That's Objective-C in a nutshell. Or was, anyway. The most minimal way to have useful OO on C. Of course, you could make it even simpler if you drop the "must be a superset of C"-requirement.
- penpapersw 9y agoThus Swift.
- mpweiher 9y agoCough. Well, except the the "simple" part...
- penpapersw 9y agoYeah not saying Swift is simple. But its goal was originally (and may still be) to be Objective-C without the C.
- mpweiher 9y agoNope. That was always an empty marketing slogan. Objective-C is Smalltalk added to C. Objective-C without the C is Smalltalk. Which is, coincidentally, a very simple language.
- euyyn 9y agoMaybe the most minimal, but not the most efficient, and C's minimalism is only useful because it lets you be as efficient as the hardware will be. Without that goal, the Lisps are more minimal than both C and Objective-C.
- throwawayfoo 9y agoFew people can make sense out of Lisp and fewer actually like it.
- jhbadger 9y agoI have a fondness for ObjC because I was a Smalltalk programmer once upon a time (it's also probably why I like Ruby), but you could imagine a simpler object system on par with Object Pascal. I'm actually kind of surprised that nobody tried that but maybe with ObjC and C++ fighting it out people assumed yet another object-oriented dialect would go nowhere.