2 ms·
> Bar = Foo#foorecord.bar, Baz = Foo#foorecord.baz #foorecord{bar=Bar, baz=Baz} = Foo Readability depends on what does your brain process, when you see "=" ;)
by viraptor 16y ago
> Bar = Foo#foorecord.bar, Baz = Foo#foorecord.baz
#foorecord{bar=Bar, baz=Baz} = Foo
Readability depends on what does your brain process, when you see "=" ;)
> since they're a compile-time trick you can't use them in the console
Check the `rX` commands from http://www.erlang.org/doc/man/shell.html http://www.erlang.org/doc/man/shell.html You can use the records just like in normal code, but you have to load them explicitly.