Skip to content
Prev 52526 / 63421 Next

anonymous function parsing bug?

Am 21.10.2016 um 18:10 schrieb William Dunlap:
f1 <- function(x) log(x)

    f2 <- function(x) { log } (x)

should act differently?

yes.


But that would mean that {log} would act differently than log.
I suppose it is a matter of taste, but I say yuck.

As for 'return', don't use it if you want readable code.  It is
like a goto but worse.  It is never necessary.


Bill Dunlap
TIBCO Software
wdunlap tibco.com

On Fri, Oct 21, 2016 at 10:17 AM, Wilm Schumacher <wilm.schumacher at gmail.com