Hi all,

Would there be interest in adding a cat0() function to base R, analogous to 
paste0()? For example, we could write

    cat0("x = ", x, "\n")

instead of

    cat("x = ", x, "\n", sep = "")

The former is more concise, and paste0() has already established the convention 
that the 0 suffix denotes concatenation with no separator.

Several CRAN packages already define their own cat0() with essentially this 
meaning. So adding it to base R could improve consistency across the R 
ecosystem and reduce the need for packages to provide their own implementations.

Thoughts?

Best,
Daniel

______________________________________________
[email protected] mailing list
https://stat.ethz.ch/mailman/listinfo/r-devel

Reply via email to