News for hackers. Stuff that matters.
Re:On Erlang's Syntax by waffle_ss on Thursday December 22, 2011 @09:26AM (#3381580)
Coming from Ruby, I was pretty excited to see Elixir[0] (and before that, Reia[1]), a language that runs on the Erlang VM but is more approachable for me syntactically and that adds some interesting features. I think it's worth checking out for anyone who wants to 'learn them some Erlang' over winter break.

[0]: https://github.com/josevalim/elixir

[1]: http://reia-lang.org/ (abandoned; author points user to Elixir now)

Re:On Erlang's Syntax by peerst on Thursday December 22, 2011 @09:56AM (#3381676)
Syntax is not as important at all.

Semantics is important.

If you think about a piece of code you should have AST's in your mind anyway -- not strings of characters.

Re:On Erlang's Syntax by davidw on Thursday December 22, 2011 @10:31AM (#3381796)
Disagree completely: the language is there to make programming the computer easier for me, the human. If I have to parse it in my head, it has failed at that, at least for 'everyday use'.

In particular, one place where Erlang gets in your way is if you swap two lines of code, there's a good chance you'll have to check the "ant turd token" at the end of the line, and change it.

It's certainly not an insurmountable difficulty, but it is an annoyance.

Re:On Erlang's Syntax by tlack on Thursday December 22, 2011 @01:20PM (#3382611)
Honest question: do you find yourself really thinking about a languages syntax after you've spent 40-50 hours coding in it? To me it kind of fades into the background, becomes hard wired in my brain. (I'm not suggesting I'm an awesome coder or anything of course)
Re:On Erlang's Syntax by davidw on Thursday December 22, 2011 @04:40PM (#3383411)
Mostly, yes, but the line endings in Erlang fail the "don't make me think" test. They make you stop and look and make sure everything is in the right place.

It's not that big a deal, and the language has lots of other great qualities, so I wouldn't get too hung up on it, but it's not fair to say it's not irritating.

Re:On Erlang's Syntax by sausagefeet on Thursday December 22, 2011 @02:18PM (#3382848)
In C++, yes.
Re:On Erlang's Syntax by waffle_ss on Thursday December 22, 2011 @01:57PM (#3382744)
Well according to the Elixir docs it does make a bit of difference in terms of homoiconicity[0] (that famous Lisp property of code=data, data=code), which makes meta-programming easier.

Also, would you rather code brainfuck or C using pointers (both being semantically identical)? ;)

[0]: http://en.wikipedia.org/wiki/Homoiconic

Re:On Erlang's Syntax by signa11 on Thursday December 22, 2011 @01:37PM (#3382663)
> Syntax is not as important at all.

syntax is a language's UI, thoughtful, clean and consistent design matters...

Re:On Erlang's Syntax by sausagefeet on Thursday December 22, 2011 @02:20PM (#3382857)
Erlang syntax might look weird at first, if coming from Ruby/Python, but I think you're giving up too early. Yes, Erlang looks different, but after an hour of playing with it you come to realize one important thing: the syntax is weird but there is an incredibly small amount. Relative to languages like Python and Java, Erlang has a small syntactic footprint. Relative to C++ you need a logarithmic graph.
Re:On Erlang's Syntax by gordonguthrie on Thursday December 22, 2011 @03:09PM (#3383044)
I came to Erlang from Ruby and it did look wierd. But now after 7 years Ruby looks odd :)

I really struggle just reading Ruby now - and it was my main language for a couple of years.

Writing Ruby - nae chance...

Re:On Erlang's Syntax by waffle_ss on Thursday December 22, 2011 @02:00PM (#3382769)
I just realized that the Elixir README file has been trimmed quite a bit. There used to be a good overview of the language there. Here is a commit that has a lot more info on it: https://github.com/josevalim/elixir/blob/530d24dcb173148da2b...