On Thu, 27 Feb 2014, Sven Schreiber wrote:
Hi,
irrelevant musings: Looking at the C source code of the infamous Apple
security flaw, which goes something like this (hopefully indentation is
preserved in the message on the list):
<pseudoC>
if (condition)
goto fail;
goto fail;
</pseudoC>
it seems to me to be the proof that having a syntax which can is easy to
read not just for the compiler/interpreter but also for humans is a good
thing per se. The good news is that in hansl an 'endif' would have been
missing and would have caused an error. Python also would have thrown an
IndentationError I think, which is proof that having significant
whitespace in Python is a good thing :-) Of course some people say it's
just bad style to use 'if' in C without braces, which is true I guess,
but then better to enforce the good style instead of just recommending it...
enough irrelevance for the day,
sven
Where's the "Like" button?
-------------------------------------------------------
Riccardo (Jack) Lucchetti
Dipartimento di Scienze Economiche e Sociali (DiSES)
Università Politecnica delle Marche
(formerly known as Università di Ancona)
r.lucchetti(a)univpm.it
http://www2.econ.univpm.it/servizi/hpp/lucchetti
-------------------------------------------------------