News for hackers. Stuff that matters.
Re:Phoenix 1.0 by erokar on Friday August 28, 2015 @12:40PM (#10136461)
The latter. The virtues of Elixir is that it is a functional language with immutable data structures, and that it does not support object oriented programming (which I consider a feature).
Re:Phoenix 1.0 by sjtgraham on Friday August 28, 2015 @12:45PM (#10136491)
Erlang processes have state and you interact with them by sending them messages. You can do OO if you want :P
Re:Phoenix 1.0 by dpeck on Friday August 28, 2015 @01:53PM (#10136902)
Oddly enough you can do OO with Erlang/Elixir in a more pure/better (to me) way than you can with more traditional OO languages.
Re:Phoenix 1.0 by Havvy on Saturday August 29, 2015 @11:03AM (#10140205)
That's because the core of OO (message passing to opaque things) is really all you can do if you have a PID. In other more-traditional object-oriented languages, they usually have defaults that let you do more than just send messages - such as mutate the internal state directly in ways that the object cannot detect.