Path: csiph.com!optima2.xanadu-bbs.net!xanadu-bbs.net!feeder.erje.net!1.eu.feeder.erje.net!border1.nntp.ams1.giganews.com!border2.nntp.ams1.giganews.com!nntp.giganews.com!buffer2.nntp.ams1.giganews.com!local2.nntp.ams1.giganews.com!nntp.brightview.co.uk!news.brightview.co.uk.POSTED!not-for-mail NNTP-Posting-Date: Mon, 20 Jul 2015 14:09:04 -0500 From: Gareth Owen Newsgroups: comp.lang.c Subject: Re: Spurious diagnostic messages References: <662af1c4-4aff-4810-9a67-b913281fab59@googlegroups.com> <874mn5ty3y.fsf@kst-u.example.com> <87egm8qis7.fsf@kst-u.example.com> Date: Mon, 20 Jul 2015 20:09:04 +0100 Message-ID: <87615e4pf3.fsf@gmail.com> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.3 (gnu/linux) Cancel-Lock: sha1:3HrwgKBMVnlAMY3TuxJcoY4RSXg= MIME-Version: 1.0 Content-Type: text/plain Lines: 15 X-Usenet-Provider: http://www.giganews.com X-Trace: sv3-Jd800ZfFK2blX/a6vxQW/l4EvV7JqCiclxjy6PMUXttWrgR7VqALjaog5U2bmWQWkRKbZ3zXvTojQfS!zlVCaxaouuEl969KlHsMav7IsU+sCqY2nrdnGZBb9+fCWFp9u/Y7MuwgYOwXD78q525pRQ== X-Abuse-and-DMCA-Info: Please be sure to forward a copy of ALL headers X-Abuse-and-DMCA-Info: Otherwise we will be unable to process your complaint properly X-Postfilter: 1.3.40 X-Original-Bytes: 2413 Xref: csiph.com comp.lang.c:66044 Keith Thompson writes: > I don't think "wrong" is the best word. I do agree that having to > specify the type of an object when printing its value is annoying. > The problem is that avoiding that annoyance would require changes to > the language, and it's not clear that the benefits of such changes > would be worth the cost. It'd be relatively easy to co-opt an unused format specifier as an optional externsion (I'd pick "%?") to mean "The compiler chooses based on the types of the varargs" That'd be backwards compatible relatively easy to implement in compilers that already do format-string <-> type checking.