allowing braces around suites
Roel Schroeven
rschroev_nospam_ml at fastmail.fm
Sat Aug 28 12:42:16 EDT 2004
Kjetil Torgrim Homme wrote:
> indeed, C or C++ is no better in this respect, quite the opposite IMO.
> Paul McGuire illustrated the corresponding problem in C:
>
> db->update_name(person);
>
> if (is_student(person))
> log("update student %s", person->name);
> db->update_courses(person);
> db->commit();
Sorry, I meant "C or C++, even with consistent use of braces", implying
that using braces IMO in general doesn't help spotting this kind of bugs.
--
"Codito ergo sum"
Roel Schroeven
More information about the Python-list
mailing list