From: Tomas Morstein <tomas.morst...@idea.cz>
Date: Fri, 12 Oct 2012 10:42:51 +0200 (CEST)
Local: Fri, Oct 12 2012 4:42 am
Subject: Re: [erlang-questions] (Non)Parametrized modules, inheritance, and R15B02 issues?
> -module(person).
Ha, that's what I didn't know about!
> -record(person, {first_name, last_name}). > -compile(export_all). > new(FirstName, LastName) -> > #person{first_name = FirstName, last_name = LastName}. > first_name(Person) -> > Perosn#person.first_name. With this feature, I can start to sleep without nightmares again :-) > So from point of view of readability there will be no change,
What's not so big deal since both boss_db and iodb models
> althought the amount of code in the model module (person.erl) will > slightly increase. are preprocessed (partially generated) by model-compiler. So only what we will have to do is to change model compiler. What's more, I believe boss_db could remain backward compatible
With our IODB model compiler, we already do something similar
Each module that is not wrote as parametrized is automatically
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
| ||||||||||||||