News for hackers. Stuff that matters.
Re:JEP 295: Ahead-of-Time Compilation by duck2 on Thursday October 27, 2016 @03:22PM (#12808775)

    functional, oop
Do these have any intersection except Scala?
Re:JEP 295: Ahead-of-Time Compilation by Sharlin on Thursday October 27, 2016 @03:29PM (#12808862)
Depends on how exactly how functional you want to go, but latest versions of C++, Java, JavaScript, and C# definitely qualify. Rust, too, though it's not strictly OO. And Python, Ruby, Swift.
Re:JEP 295: Ahead-of-Time Compilation by belovedeagle on Thursday October 27, 2016 @04:34PM (#12809741)
If Rust is OO then the term is meaningless. No inheritance; dynamic dispatch only via explicit indirection (Boxed traits); methods are (therefore) just syntactic sugar for regular functions.
Re:JEP 295: Ahead-of-Time Compilation by qznc on Thursday October 27, 2016 @05:53PM (#12810610)
Lisp CLOS does not have inheritance for methods either, but is OO by definition.

Imho, OO is about polymorphism [0] and Rust provides that.

[0] http://beza1e1.tuxen.de/articles/oop.html

Re:JEP 295: Ahead-of-Time Compilation by lispm on Friday October 28, 2016 @04:06AM (#12813914)
Common Lisp has inheritance of methods, but it does not work on a class hierarchy directly. When a generic function gets called, the applicable methods are being ordered based on the classes of the arguments - not just one argument, but possibly many. A more specific method can call the next method. In some cases this is done automatically. This is inheritance, based on the class hierarchy.

CLOS also allows the developer to implement other inheritance mechanisms, by developing his own way to combine the methods of a generic function.

Re:JEP 295: Ahead-of-Time Compilation by belovedeagle on Thursday October 27, 2016 @06:03PM (#12810701)
Rust fails many of the other tests mentioned. As for polymorphism, is Haskell OO? If so, then I think my claim that the term is meaningless is justified.
Re:JEP 295: Ahead-of-Time Compilation by qznc on Friday October 28, 2016 @01:51PM (#12818715)
This is the punch line. Once you have a definition of OO, which fits all languages usually considered OO, the definition also fits Haskell. :)
Re:JEP 295: Ahead-of-Time Compilation by dfox on Thursday October 27, 2016 @09:32PM (#12812238)
CLOS effectively does have inheritance for methods because for sane specializers subclass matches everywhere where it's superclass matches. One can in fact view the CLOS mechanism of specializers and effective-method composition as more flexible mechanism for inheritance than traditional implementations of OOP.
Re:JEP 295: Ahead-of-Time Compilation by jjnoakes on Thursday October 27, 2016 @05:24PM (#12810341)
I disagree; with encapsulation, polymorphism, and composition, Rust seems OO enough to not make the term "meaningless".

At least, not according to the widely used definitions I've read of OO.

Re:JEP 295: Ahead-of-Time Compilation by belovedeagle on Thursday October 27, 2016 @06:05PM (#12810713)
All of these things are found in Haskell as well; it's not OO by any stretch of the imagination. You're confusing "oop language" with "modern programming language".
Re:JEP 295: Ahead-of-Time Compilation by jjnoakes on Thursday October 27, 2016 @11:07PM (#12812709)
Re:JEP 295: Ahead-of-Time Compilation by bad_user on Friday October 28, 2016 @12:35AM (#12813128)
If Rust is FP then that term is meaningless too ;-)
Re:JEP 295: Ahead-of-Time Compilation by agumonkey on Thursday October 27, 2016 @03:48PM (#12809128)
Does OCaml counts ? the OO layer is actually pretty interesting.
Re:JEP 295: Ahead-of-Time Compilation by wtetzner on Thursday October 27, 2016 @05:03PM (#12810097)
It's funny, OCaml's object system is actually quite good, but it doesn't really get used much because, well, why use objects when you have ML?
Re:JEP 295: Ahead-of-Time Compilation by agumonkey on Thursday October 27, 2016 @05:10PM (#12810184)
Yes that's a nice Cobra Effect.
Re:JEP 295: Ahead-of-Time Compilation by stass on Thursday October 27, 2016 @04:45PM (#12809901)
And don't forget Erlang as well.
Re:JEP 295: Ahead-of-Time Compilation by jahewson on Thursday October 27, 2016 @05:48PM (#12810570)
OCaml, which is now 20 years old. The "O" was originally for "Objective".
Re:JEP 295: Ahead-of-Time Compilation by brianwawok on Thursday October 27, 2016 @03:28PM (#12808859)
F#