# Cobra
if a = b
print a
print c
is very different from:
# Cobra
if a = b
print a
print c
with the only difference a missing tab.
In this sample:
- Code: Select all
// C
if( a == b)
{
printf( a )
}
printf( c )
accidentally deleting or omitting the closing brace would cause a compiler error and only moving it would cause the change in results seen in the Cobra examples above.
I like the clean appearance of Cobra code and the idea of not having to match braces, but it introduces a new potential source of errors that must be carefully watched.