News for hackers. Stuff that matters.
Re:When would you choose Erlang? (2013) by vezzy-fnord on Saturday August 08, 2015 @05:34PM (#10028736)
I actually enjoy the language itself. Functional, but not tacit. The module system provides good namespacing boundaries and package encapsulation. A data type-driven programming style emphasizing pattern matching on primal terms like tuples and lists. Good syntax for list comprehensions. On and on.

I would switch to Elixir, but the syntax is too weird.

Re:When would you choose Erlang? (2013) by lectrick on Saturday August 08, 2015 @06:09PM (#10028785)
> but the syntax is too weird

Ah, I've finally found someone in the wild who thinks Erlang's syntax is less weird than Elixir's! ;)

Re:When would you choose Erlang? (2013) by bliti on Saturday August 08, 2015 @07:55PM (#10029003)
It is weird. I do question their choice for ruby like syntax. Still is a fine language. It just gets confusing because a language is made up of its idioms and syntax. If you copy those a then you confuse people.
Re:When would you choose Erlang? (2013) by jwatte on Saturday August 08, 2015 @11:26PM (#10029413)
Elixir fixed all the things that didn't matter, and made all the things that matter harder and more expensive. Raw Erlang is better for anyone used to more than three languages.
Re:When would you choose Erlang? (2013) by lectrick on Sunday August 09, 2015 @05:31PM (#10031652)
As a guy who's been doing Ruby for 10 years, syntax matters very much to me.

> and made all the things that matter harder and more expensive

... Explain?

> Raw Erlang is better for anyone used to more than three languages.

While I can read and write "raw Erlang", I prefer Elixir, for whatever reason. The macro facility alone is far more powerful than anything Erlang can provide, I enjoy things like pipe |> which was taken from... crap, forgot which language... http://danthorpe.me/posts/pipe.html, protocols are a useful addition, and strings are natively-supported UTF-8 binaries and not arrays (well, you have both actually, depending on whether you single-quote or double-quote the string). And while both seem to be roughly as terse, I just find Elixir to be far more readable and more-organized-looking, compare Shannon entropy algorithms here for example http://rosettacode.org/wiki/Entropy#Elixir

Anyway, a lot of it is opinion, but I think it's good from anyone's perspective that Elixir is ultimately bringing more clever people onto the BEAM VM.

Re:When would you choose Erlang? (2013) by cheepin on Sunday August 09, 2015 @07:34PM (#10031950)
The pipe operator came from OCaml I believe and is also used in F#. Huge convenience for functional langauges.
Re:When would you choose Erlang? (2013) by lectrick on Monday August 10, 2015 @04:57PM (#10037250)
aha! Yes, OCaml. And F#. Although I think, OCaml was first.
Re:When would you choose Erlang? (2013) by phamilton on Sunday August 09, 2015 @02:01AM (#10029649)
Protocols and Macros are a big deal in my opinion. If you think Elixir is merely about syntax, then I recommend you dive into those two topics.
Re:When would you choose Erlang? (2013) by digitalzombie on Saturday August 08, 2015 @06:08PM (#10028782)
The list comprehension syntax gets confusing for me to read especially with pattern matching.
Re:When would you choose Erlang? (2013) by seiji on Saturday August 08, 2015 @06:59PM (#10028903)
Haskell: https://gist.github.com/gigamonkey/6249d85021bc8bf54eb4

Erlang: https://gist.github.com/mattsta/b6749e566f5cfd75762a

List comprehensions make no sense to anybody at first. But after you work with and struggle against them for a few days/weeks, everything will click. You'll be a better developer for understand them more intuitively.

Re:When would you choose Erlang? (2013) by EarthLaunch on Sunday August 09, 2015 @11:14AM (#10030447)
I don't know about that last part. I spent years with Erlang until finally list comprehensions became natural, and I still don't feel like a better programmer!