typing

Sean Hinde Sean.Hinde@REDACTED
Wed Aug 23 16:26:40 CEST 2000


Is anyone else using this sort of technique in big projects?

How do Ericsson themselves minimise the likelyhood that these sorts of
runtime errors will not make their way into system testing and hence cause
big cost and delay?

Sean


Another solution for this one is to use macros instead of atoms 
e.g. 

-define(Message,message). 

receive 
    ?Message -> 
        ok 
    Any -> 
        Any 
end 

This way any mistypes are spotted by the compiler, very usefull in
genservers with a lot 
of state atoms 




NOTICE AND DISCLAIMER:
This email (including attachments) is confidential.  If you have received
this email in error please notify the sender immediately and delete this
email from your system without copying or disseminating it or placing any
reliance upon its contents.  We cannot accept liability for any breaches of
confidence arising through use of email.  Any opinions expressed in this
email (including attachments) are those of the author and do not necessarily
reflect our opinions.  We will not accept responsibility for any commitments
made by our employees outside the scope of our business.  We do not warrant
the accuracy or completeness of such information.





More information about the erlang-questions mailing list