5 ms·
I actually enjoy the language itself. Functional, but not tacit. The module system provides good namespacing boundaries and package encapsulation. A data type-d
by vezzy-fnord 11y ago
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.
- digitalzombie 11y agoThe list comprehension syntax gets confusing for me to read especially with pattern matching.
- seiji 11y agoHaskell: https://gist.github.com/gigamonkey/6249d85021bc8bf54eb4 https://gist.github.com/gigamonkey/6249d85021bc8bf54eb4 Erlang: https://gist.github.com/mattsta/b6749e566f5cfd75762a 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.
- EarthLaunch 11y agoI 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!
- lectrick 11y ago> 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! ;)
- bliti 11y agoIt 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.
- deleted 11y ago[deleted]
- jwatte 11y agoElixir 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.
- phamilton 11y agoProtocols 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.
- lectrick 11y agoAs 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 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 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.