Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

My favorite thing about Erlang is that the syntax is so simple and terse. And none of it is optional. So its either necessary or it isn't there, and this saves me from a lot of ambiguity issues.

I also like that it practically reads like bulletpoints. There's no cruft or decoration around function definition or internal statements. I was even able to write my CV in Erlang after attemtping 3 other languages first (Elixir, Rust, C) and Erlang was the only one where it didn't look like a jumble of weird code and syntax, and was consumable by executives, engineers and headhunters alike.

My only wish would be that Erlang adopted Elixir's atom syntax, or that Elixir adopted Erlang's variable syntax, because then I could look at my code and know immediately at a glance what was a function, what was a Variable, and what was an :atom.

As it stands in Erlang atoms and functions look superficially the same, and in Elixir the functions and variables look the same.



Just want to point out that atoms and function names ARE the same in that function names are atoms, they must be in fact as that what the system demands. So are module names for that matter. That is why if you want a function with a "funny" name you quote it as you do an atom

'the answer'() -> 42.


I thought Erlang looked weirder than Elixir (to the extent that I was turned off until Elixir came along), but fortunately, both of our opinions are compatible as everything compiles down to BEAM and is interoperable :)

From a semantic persopective I've found that I almost automatically understand Erlang just from working with Elixir. Some things like OTP are pretty much identical. Plus you get "real" macros :)


Yeah good point, Elixir is not just Erlang with a different syntax. It has streams, macros and a few other nice things. I believe Jose Valim likes to emphasise that point as well.

Now I personally prefer Erlang's syntax. I like that it is different because I know semantically stuff behaves differently. I would be more confused and disturbed by it if it looked like Java for example. I also like the immutable variables aspect..

However at the end of the day I am very happy to see Elixir grow. It really has one of the friendliest and most welcoming community. It will hopefully bring more people to the BEAM VM ecosystem.


> I also like the immutable variables aspect.

Elixir has the same immutable variables. I don't know why this is such a misconception. Erlang conflates rebinding and reassignment, Elixir does not, and the tradeoffs seem to (overall) be better in Elixir's case. Here, read the language creators' explanation as to why that is, it's the best:

http://blog.plataformatec.com.br/2016/01/comparing-elixir-an...

Very succinct and (hopefully) puts this misconception to bed.


The OTP are identical because both use the same OTP, the original Erlang OTP. Elixir just puts a wrapper around it to give a more elixir feel. And add default callbacks which I personally don't like.


Is your Erlang CV online to view?


For the sake of my own sanity, and due to a lack of necessity, I haven't gone through the trouble of CSS'ing things to make it layout the way I'd want on the web. I wouldn't allow myself to half-ass it, and so toiling over OCD-fueled "pixel perfect" HTML & CSS for that task would wind up closely resembling what I'm sure hell is like.

However, if you ping me on Twitter @n_aschbacher, or something commensurately similar, I'll happily share it with you.


Erlang's syntax isn't simple at all. No if statements, no for loops, only recursion and guards. Else is ; and there are proper and improper lists e.g. [1|2] is improper but [1|[2]] is proper. Weird.


So it's not simple because it has less stuff and it's not an imperative language?


It's not simple = it is hard to learn for people coming from C/Java/JS-like environment.


That makes it different. Not complicated.

It's many, many times simpler than the syntax and semantics than any of thos e three that you listed.

The only language that I can think of that's simpler is Lisp.


CV as in curriculum vitae? Do a lot of people do that?


Some people like to do cutesy things like this: http://macournoyer.com/blog/2010/02/23/how-to-apply-to-a-job...


I've seen a few around. Here's one HN post that I can quickly recall - https://news.ycombinator.com/item?id=9216299




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: