[R] "Goto" loop

Barry Rowlingson b.rowlingson at lancaster.ac.uk
Fri Oct 31 17:54:59 CET 2008


2008/10/31 Peter Dalgaard <P.Dalgaard at biostat.ku.dk>:

> It doesn't exist, but it can always be replaced by if() {} else {}
> constructs. (You don't usually see goto in the class of "functional
> programming languages" to which R belongs.  See also
> http://en.wikipedia.org/wiki/Edsger_W._Dijkstra .)

 Also see also the always wonderful xkcd comic on the subject:

http://xkcd.com/292/

Barry



More information about the R-help mailing list