4 ms·
Objective C is by far the weirdest on that list.
by pmdr 10mo ago
Objective C is by far the weirdest on that list.
- watersb 10mo agoSmalltalk, but in C
- saagarjha 10mo agoObjective-C is basically Java so I wouldn’t call it that weird.
- gnabgib 10mo agoObjective-C is significantly (11 years) older than Java. 1984: https://en.wikipedia.org/wiki/Objective-C https://en.wikipedia.org/wiki/Objective-C 1995: https://en.wikipedia.org/wiki/Java_(programming_language) https://en.wikipedia.org/wiki/Java_(programming_language)
- saagarjha 10mo agoCorrect, Java was designed with a strongly influence from Objective-C.
- gnabgib 10mo agoOne might even say Java is basically Objective-C
- saagarjha 10mo agoNo, Java never took anything good from the language.
- pjmlp 10mo agoSun folks disagree, https://cs.gmu.edu/~sean/stuff/java-objc.html https://cs.gmu.edu/~sean/stuff/java-objc.html https://en.wikipedia.org/wiki/Distributed_Objects_Everywhere https://en.wikipedia.org/wiki/Distributed_Objects_Everywhere Sure, they could have taken a bit more, like proper AOT instead of it being a feature only available in third party commercial JDKs, or some low level niceties like C#.
- saagarjha 10mo agoI was talking about good parts of the language
- pjmlp 10mo agoLike [] and @ all over the place, C lack of safety, and manual memory management? Because I don't see what else good Java has left out, besides AOT in the box and unsigned types.
- saagarjha 10mo agoUh, the entire runtime?
- pjmlp 10mo agoI beg to differ, given the engineering effort that went into JVM across various Java vendors, versus Apple and NeXT have done. Proven by the fact that Swift had to be invented, as there was nothing left to fix Objective-C in a proper way.
- saagarjha 10mo agoSwift has that runtime, by the way.
- pjmlp 10mo agoNope, Swift interops with Objective-C runtime to ease code migration from legacy Objective-C code, and existing Apple frameworks predating Swift. A runtime that isn't part of the cross-platform Swift project, with missing functionality being rewriten into Swift.
- saagarjha 10mo agoYes, and those platforms are worse off for it.
- pjmlp 10mo agoKind of, but with C++ syntax to make it more appealing, https://cs.gmu.edu/~sean/stuff/java-objc.html https://cs.gmu.edu/~sean/stuff/java-objc.html