Re: [R] Evaluation of defaults in functions

From: hadley wickham <>
Date: Fri 29 Sep 2006 - 02:34:19 GMT

> And, to answer the specific question: Yes, R has lazy evaluation,
> everywhere. Arguments are always evaluated if and when they are
> needed.

But doesn't R has a rather limited force of lazy evaluation? - you have no control over it, apart from that arguments are evaluated lazily. This rather limited compared to other languages (no lazy lists etc)

Hadley mailing list PLEASE do read the posting guide and provide commented, minimal, self-contained, reproducible code. Received on Fri Sep 29 12:41:45 2006

Archive maintained by Robert King, hosted by the discipline of statistics at the University of Newcastle, Australia.
Archive generated by hypermail 2.1.8, at Fri 29 Sep 2006 - 11:30:06 GMT.

Mailing list information is available at Please read the posting guide before posting to the list.