[R] variable scope

Duncan Murdoch murdoch.duncan at gmail.com
Wed Aug 29 03:06:33 CEST 2012


On 12-08-28 5:55 PM, Sam Steingold wrote:
>> * R. Michael Weylandt <zvpunry.jrlynaqg at tznvy.pbz> [2012-08-28 13:45:35 -0500]:
>>
>>> always you shouldn't need manual garbage collection.
>
> my observation is that gc in R sucks.
> (it cannot release small objects).
> this is not specific to R; ocaml suffers too.

Sorry, I didn't realize you were just a troll.  Please ignore my 
previous reply.

Duncan Murdoch

>
>> since a loop doesn't define its own scope like some languages (a
>> practice that always seemed strange to me),
>
> every level of indentation has its own scope.
> seems reasonable.
>
>> The other answer is to use functions / apply statements like the good
>> lord and John Chambers intended :-)
>
> so explicit loops are "deprecated" in some sense?
>
> thanks for your kind and informative reply!
>




More information about the R-help mailing list