Tutorials
Yariv Sadan
yarivvv@REDACTED
Fri Aug 18 13:58:05 CEST 2006
Hi,
I wrote a tutorial last night on how to use Smerl to generate getters
and setters for all record fields in a given source files to avoid the
built in record access syntax.
http://yarivsblog.com/articles/2006/08/18/smerl-demo-easy-function-based-record-access-in-erlang
Old way:
Name = Person#person.name,
P1 = Person#person{name = "Bob"}
Smerl way:
Name = person:name(Person),
P1 = person:name(Person, "Bob")
:)
Yariv
On 8/17/06, Logan, Martin <Martin.Logan@REDACTED> wrote:
>
>
>
>
> All, I would like to collect and format all the existing tutorials for
> erlang/otp. I would like anyone that has written a tutorial about anything
> to please forward it to me or the list. I am going to endeavor to format
> them, perhaps copy the style of the erlang docs, but I am not positive, and
> then make them available. I will credit the authors of course. I think it
> would be helpful for new people coming to the language to have a nice
> compendium of tutorials. You can forward me the tutorials in any form and I
> will do the work to get them all formatted nicely and then email the
> collection, as a pdf, back out as well as make it available on the web.
>
>
>
> Cheers,
>
> Martin
More information about the erlang-questions
mailing list