|
On 07/13/2016 01:41 PM, Egor
Skriptunoff wrote:
That solves only the second case (and isn't very nice in doing so). But what about the way more common and important first case? The only good solution I see is to not allow function calls by array constructors. So you would always have to write: t([]) t([1]) t([1,2]) ... Disallowing only the single element case would be very error prone IMO. -- Thomas |