Skip to content

Comment on Elixir is for programmers

Comments

    if(condition, do: a, else: b)
looks like a function, but that implies Elixir does lazy evaluation so that only one of a or b gets evaluated. Or is something else going on?

if is a macro.

AboutSource Built by g1lg1l

Hackerly is an independent reader for Hacker News, built on the public HN API. Not affiliated with Y Combinator.