Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > sci.electronics.design > #480567
| From | David Brown <david.brown@hesbynett.no> |
|---|---|
| Newsgroups | sci.electronics.design |
| Subject | Re: Ping Tom Gardner et. al. |
| Date | 2017-10-06 14:24 +0200 |
| Organization | A noiseless patient Spider |
| Message-ID | <or7slj$5lc$1@dont-email.me> (permalink) |
| References | <kqABB.142601$po2.80988@fx36.iad> <or7bpu$efd$1@dont-email.me> <2bJBB.1080790$uh.251387@fx28.am4> |
On 06/10/17 12:47, Tom Gardner wrote: > On 06/10/17 08:36, David Brown wrote: >> and while >> everything works correctly (it's easy to check), your code review folks >> are sticking hot pokers in their eyes to avoid looking at it. > > And that, in a nutshell, is one problem with C/C++ > There are two solutions to it. One is that when a feature appears useful but cumbersome, C++ evolves to make it simpler. Examples include recursive template programming (replaced by variadic templates and generalised constexpr functions), the safe boolean idiom (replaced by explicit conversion operators), and "enable_if" templates (replaced by concepts). (If those terms don't mean anything to you, you should question how valid your opinions on C++ are without knowledge of the modern language.) The other solution is to realise that you can program in C++ without understanding all the fiddly and complex bits - you can leave those to the folks writing libraries. This is the same in most programming languages. > >> So C++11 allows some fancy tricks like, but they should not be used >> until C++14 and generalised constexpr functions. (I can't remember >> off-hand if gcc 5.3 supports that - I /think/ it does.) > > And that, in a nutshell, is one recurring problem with C/C++ If you want to use modern features, use a modern compiler. I don't track all features and all versions of gcc in my head - but I know how to look it up. It is not hard. > > Choose your poison carefully :)
Back to sci.electronics.design | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll thread
Ping Tom Gardner et. al. bitrex <bitrex@de.lete.earthlink.net> - 2017-10-05 20:49 -0400
Re: Ping Tom Gardner et. al. David Brown <david.brown@hesbynett.no> - 2017-10-06 09:36 +0200
Re: Ping Tom Gardner et. al. David Brown <david.brown@hesbynett.no> - 2017-10-06 11:18 +0200
Re: Ping Tom Gardner et. al. bitrex <bitrex@de.lete.earthlink.net> - 2017-10-06 05:59 -0400
Re: Ping Tom Gardner et. al. bitrex <bitrex@de.lete.earthlink.net> - 2017-10-06 06:05 -0400
Re: Ping Tom Gardner et. al. David Brown <david.brown@hesbynett.no> - 2017-10-06 12:20 +0200
Re: Ping Tom Gardner et. al. Tom Gardner <spamjunk@blueyonder.co.uk> - 2017-10-06 11:47 +0100
Re: Ping Tom Gardner et. al. David Brown <david.brown@hesbynett.no> - 2017-10-06 14:24 +0200
Re: Ping Tom Gardner et. al. Tom Gardner <spamjunk@blueyonder.co.uk> - 2017-10-06 13:55 +0100
Re: Ping Tom Gardner et. al. bitrex <bitrex@de.lete.earthlink.net> - 2017-10-06 09:12 -0400
Re: Ping Tom Gardner et. al. David Brown <david.brown@hesbynett.no> - 2017-10-06 16:37 +0200
Re: Ping Tom Gardner et. al. Tom Gardner <spamjunk@blueyonder.co.uk> - 2017-10-06 15:50 +0100
Re: Ping Tom Gardner et. al. bitrex <bitrex@de.lete.earthlink.net> - 2017-10-06 14:02 -0400
Re: Ping Tom Gardner et. al. David Brown <david.brown@hesbynett.no> - 2017-10-06 16:32 +0200
Re: Ping Tom Gardner et. al. Tom Gardner <spamjunk@blueyonder.co.uk> - 2017-10-06 17:44 +0100
Re: Ping Tom Gardner et. al. David Brown <david.brown@hesbynett.no> - 2017-10-16 11:18 +0200
Re: Ping Tom Gardner et. al. Jasen Betts <jasen@xnet.co.nz> - 2017-10-09 07:58 +0000
Re: Ping Tom Gardner et. al. David Brown <david.brown@hesbynett.no> - 2017-10-16 11:23 +0200
csiph-web