[Date Prev][Date Next][Thread Prev][Thread Next]
[Date Index]
[Thread Index]
- Subject: Re: Tuples and other constant values
- From: Daurnimator <quae@...>
- Date: Wed, 8 Jul 2015 09:25:26 +1000
On 8 July 2015 at 00:19, Jay Carlson <nop@nop.com> wrote:
> This conversation might have been shorter if somebody said:
>
> "Tuples are a composite sequenced data type with value semantics."
>
> Note that "value semantics" implies that the contents must also have value
> semantics. This limits them to numbers, strings, booleans, tuples, and
> possibly light userdata and nil.
>
> Jay
Why?
Why can't you have a tuple that contains e.g. a string and a table?
It would be equal to any other tuple that has the same string and table inside.