Path: csiph.com!xmission!nnrp.xmission!.POSTED.shell.xmission.com!not-for-mail From: nobody@example.org (Scott) Newsgroups: comp.lang.c,comp.lang.c++ Subject: Re: Switching to C# Date: Sun, 16 Jun 2019 01:58:48 GMT Organization: XMission http://xmission.com/ Message-ID: <5d059fdf.3429680737@core> References: <5d03bb38.3305609877@core> Injection-Info: news.xmission.com; posting-host="shell.xmission.com:2607:fa18:0:beef::4"; logging-data="9337"; mail-complaints-to="abuse@xmission.com" X-Newsreader: Forte Free Agent 1.21/32.243 Xref: csiph.com comp.lang.c:144907 comp.lang.c++:66455 On Sat, 15 Jun 2019 18:49:52 +0200, Bonita Montero wrote: >>> You don't have to declare everything before you use it. > >> Many people, including myself, consider that to be a bad thing. > >With todays IDEs it's not a pain when there aren't any forward >-declarations. Just right-click at the symbol and click the >option to guide to the definition. >I like C++ but I don't think forward-declarations are an adantage. There are ways. Long ago I wrote an assembler that avoided forward declarations by making two passes over the source. C doesn't do that, for reasons. C does allow implicit declarations. You can call a previously undeclared function, and C will trust that the types you're passing are the types the function's expecting. I think it's a bad idea, and it usually yields warnings suggesting that it's a bad idea. I think any form of implicit typing is a bad idea.