What is the name given to @foo

This will sound like a daft question, but when discussing code with people we’re never quite sure how to refer to

@foo {something: lol}

Is it known as an attribute? I have to fight by rails background to not refer to it as an instance variable!

It’s a “module attribute”.

See https://hexdocs.pm/elixir/Kernel.html#@/1

Reads and writes attributes of the current module.

2 Likes

Thanks, my google (and seemingly doc!)-fu let me down bigtime!