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

My $0.02.

Elixir's do/end blocks actually enhance the syntax it inherits from Ruby by making it very, very consistent. Defining any type of entity takes a do/end block - def, defmodule, defmacro, defprotocol, defimpl, and probably some that I have forgotten.



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

Search: