[erlang-questions] -spec tuple variable size
Thu Nov 29 17:58:30 CET 2012
On Thu, Nov 29, 2012 at 4:46 PM, Dmitry Kolesnikov
> I do offer an api to store a tuple. The storage do not concern the tuple cardinality, in similar fashion like ets/dets does. One of my current limitation is that tuple elements MUST be a particular data type. I simply want to validate that client writes tuples with supported data types. I am also fine with generic tuple() data type but it is less error prone.
If you really need that, you could write a parse_transform, which
would create 4096 reincarnations of correct tuples. However, I
think it will still be reduced to tuple() by dialyzer during
checking time (please correct me if not).
Unfortunately, patch for dialyzer to replace SET_LIMIT to a run-time
argument, in this case 4096, still did not reach the top of my todo
More information about the erlang-questions