Record selectors

Vlad Dumitrescu (EAW) Vlad.Dumitrescu@REDACTED
Mon Jan 13 11:51:05 CET 2003


Hi,

> All attempts to make records a bit safer are welcome - I have a couple of comments on your suggestion: 
>>       - one problem today is that records are effectively 
>> module local (since they only exist as such at compile-time). 
>I have grown very used to using the same record name (locally defined) in lots of different modules - 
>not least in the gen_server where just about every one ever written surely has a #st() or #state{} 
>record.
>I think that such a scheme as you suggest would need to kep the ability to have totally module private 
>record definitions as well as your global definitions.

well, what about packages? This is basically what they were designed for!

regards,
Vlad



More information about the erlang-questions mailing list