[Yarv-devel] New massign tests

SASADA Koichi ko1 at atdot.net
Mon Oct 3 01:27:54 EDT 2005


Hi,

� wrote:
> SASADA Koichi wrote:
> 
>> Should massign syntax return array?  This behaviour is high runtime 
>> cost and we use these syntax at only few cases.
> 
> 
> Hm, can you detect when it is done in a void context? (Similar to ruby 
> -we "1".) I would imagine it would keep the run-time cost low in most 
> cases -- it would only cause less performance if the return value is 
> potentially significant. (Like when a massign is the last statement of a 
> method.)
> 
> Sorry if it is not as simple as that.
> 
It's easy to detect void context or not.  Yes, your solution is best for
save compatibility.  But it is doubtful that this specification is good
language design (especially, introducing multi-value).

-- 
// SASADA Koichi at atdot dot net
//



More information about the Yarv-devel mailing list