Re:Why your first Rust FizzBuzz implementation may not work
by heinrich5991 on Monday October 13, 2014 @08:04AM
(#8448355)
Is that allowed by the standard? (Passing a parameter to `printf` but not referencing it, in the non-"%d\n" case?)
[ Parent
| on HN ]
Re:Why your first Rust FizzBuzz implementation may not work
by kps on Monday October 13, 2014 @11:39AM
(#8449122)
C11 §7.21.6.1
If the format is exhausted while arguments remain, the excess
arguments are evaluated (as always) but are otherwise ignored.
but that's just a consequence of stdarg, which does not require all supplied arguments to be consumed.