Prev: const is an overrated concept that is a source of extra typing and maintenance
Next: const is an overrated concept that is a source of extra typing and maintenance
From: DeMarcus on 24 Mar 2010 15:17 mattb wrote: > I have recently heard the above, along with a further statement along > the lines of - > > 'const is there to stop amateur slip ups. Professionals should know > what a function is expecting and should use that.' > > Could I please have some comments on these statements. > > Cheers, > Matt. > Put it simple; not everyone in a project is an expert. /Daniel PS. If you have ever used a calendar to keep track of important dates, then maybe you would also appreciate the compiler to keep track of important consts. -- [ See http://www.gotw.ca/resources/clcm.htm for info about ] [ comp.lang.c++.moderated. First time posters: Do this! ] |