- Simple Program from 2.3.2 of Stroustrup 3/e - 3 Updates
- Dogs and cats - 1 Update
Vir Campestris <vir.campestris@invalid.invalid>: Jan 24 09:55PM On 24/01/2018 21:24, Tim Rentsch wrote: > For me 'const' signifies something worth bringing to the attention > of the reader. Overusing const is just as much of a negative as > underusing it. If I was designing a language from scratch I think I'd make const default. The fact that we have to specify const, but not writeable, is IMHO a historical accident. Andy |
legalize+jeeves@mail.xmission.com (Richard): Jan 24 10:07PM [Please do not mail me a copy of your followup] Tim Rentsch <txr@alumni.caltech.edu> spake the secret code >I dislike having to write forward declarations, and to a lesser >extent having to see them while reading. But I dislike those >things a lot less than having to read code backwards. "Backwards" is ambiguous because it means top-to-bottom for someone who likes to read code in a bottom-up manner and it means bottom-to-top for someone who likes to read code in a top-down manner. IMO, it is a useful skill to read code in either direction, but naturally one can still have a preference. -- "The Direct3D Graphics Pipeline" free book <http://tinyurl.com/d3d-pipeline> The Terminals Wiki <http://terminals-wiki.org> The Computer Graphics Museum <http://computergraphicsmuseum.org> Legalize Adulthood! (my blog) <http://legalizeadulthood.wordpress.com> |
Daniel <danielaparker@gmail.com>: Jan 24 03:06PM -0800 On Wednesday, January 24, 2018 at 4:55:28 PM UTC-5, Vir Campestris wrote: > If I was designing a language from scratch I think I'd make const default. I'd be skeptical if any new language would take const from C++. const can be thought of as an ad hoc construct that effectively provides a class with a second interface. Modern languages that have interfaces don't need that, you would just provide an interface with an immutable specification, if that was what you wanted. Daniel |
"Chris M. Thomasson" <invalid_chris_thomasson@invalid.invalid>: Jan 23 04:33PM -0800 On 1/23/2018 2:51 PM, Rick C. Hodgin wrote: > Whereas owners of cats are compelled to realize that, if you provide > them with food and water and affection, they draw the conclusion that > they are God." -- Christopher Hitchens ;^) Well, I have seen some interesting Dogs, that grab a toy and become possessive, even growling at their owner, or God if you will. |
You received this digest because you're subscribed to updates for this group. You can change your settings on the group membership page. To unsubscribe from this group and stop receiving emails from it send an email to comp.lang.c+++unsubscribe@googlegroups.com. |
No comments:
Post a Comment