PROPOSAL: 'forget' keyword (beta)

Marek Kozieł develop4lasu at
Fri Mar 27 14:44:53 PDT 2009

W dniu 27 marca 2009 17:38 użytkownik Daniel Cheng <j16sdiz at> napisał:
> On Fri, Mar 27, 2009 at 10:02 PM, Marek Kozieł <develop4lasu at> wrote:
>>   I do not know if there is point to describe this proposal in
>> details, because it require to introduce new keyword which may be
>> impossible for project Coin scope.?
> You are encourage going against the  CERT Secure Programming Practice:
> Almost all modern programming style manual against reuseing variable name, eg:

Reusing names is bad (we have the same opinion here)

Let's say explicit that something should not be used what's good

Contrary to pretension this solution will decrease a number of resused
variables "names". Notice that for example someone has opened stream,
worked on it and closed. Nowdays, it's quite common to reuse variable
for second stream, but if someone has used "forget stream" and had
warning/error on "reuse" , he will use for 95% new variable.

Pozdrowionka. / Regards.
Lasu aka Marek Kozieł

More information about the coin-dev mailing list