[erlang-questions] -spec tuple variable size

Richard O'Keefe ok@REDACTED
Fri Nov 30 01:26:30 CET 2012


On 30/11/2012, at 5:46 AM, Dmitry Kolesnikov wrote:

> Hello,
> 
> Thanks for your comment, appreciate it.
> Unfortunately, you have missed my use-case.
> 
> I do offer an api to store a tuple.

Let me put it this way:
   why do YOU care whether all the elements of the tuple have
   the same type?

Since the client's calls to your code might not be type checked,
you cannot rely on type checking to guarantee whatever property
it is you need, so you are going to need a run-time check anyway,
aren't you?




More information about the erlang-questions mailing list