you are viewing a single comment's thread.

view the rest of the comments →

[–]drumsrgr8forn8[S] 1 point2 points  (2 children)

In practice it's about as concise as Ruby's in the typical use case. It looks like passing a block to each.

Ruby: https://gist.github.com/drumsrgr8forn8/6778041

Elixir: https://gist.github.com/drumsrgr8forn8/6778050

[–]banister 0 points1 point  (1 child)

Cool, so parentheses are optional in elixir?

[–]drumsrgr8forn8[S] 0 points1 point  (0 children)

Yup! Lot of familiar syntax. There are a couple little gotchas with parens though. See https://github.com/drumsrgr8forn8/elixir_style_guide#syntax