timotheecour / Nim

Nim is a compiled, garbage-collected systems programming language with a design that focuses on efficiency, expressiveness, and elegance (in that order of priority).
http://nim-lang.org/
Other
2 stars 0 forks source link

should addf raise when varargs len is 0 (to avoid a pitpfall)? #780

Open timotheecour opened 3 years ago

timotheecour commented 3 years ago

placeholder to discuss a (minor) point raised in https://github.com/nim-lang/Nim/pull/18418#discussion_r665533423

It's also unclear whether addf should be a proc or a template/macro because in practice we don't need a RT varargs[string]; hopefully this can be addressed with upcomping addConcat / concat discussed elsewhere.