[Linux-Biella] Apple iProblema

PaulTT paultt a bilug.linux.it
Lun 24 Feb 2014 12:58:50 CET


On 24/02/2014 08:52, Jumping Jack 說:
> On 24/02/2014 2:07, PaulTT wrote:
>> On 23/02/2014 19:16, Luca Savio 說:
>>>
>>> Il 23/02/2014 18:37, Alberto Bertoli ha scritto:
>>>>
>>>> http://www.corriere.it/tecnologia/mobile/14_febbraio_23/apple-iphone-ipad-bug-rischio-sicurezza-0a4ac3f0-9c8e-11e3-bf70-ea8899950404.shtml 
>>>>
>>>>
>>>>
>>>> Ma la spiegazione della causa , con tanto di codice cerchiato in 
>>>> rosso,
>>>> non sembra una minchiata anche a voi ?
>>>> _______________________________________________
>>> Ne ha tutti i connotati: OS minchia, errore di conseguenza :D
>>> _______________________________________________
>>>
>>
>> ma piu' che altro, il goto e' deprecato dall'82 credo, e li' e' un 
>> classico errore di incapacita', o sfiga ;P
>> mettiamola cosi', non avessero usato un goto, magari si sarebbero 
>> accorti prima dell'errore lol
>>
> Certamente programmando strutturato certi errori non posso avvenire, 
> ma il goto non è deprecato in C, anzi eliminare un comando che 
> permette di scrivere codice più snello sarebbe sciocco. Il C è un 
> linguaggio molto libero, se si eliminassero tutti i comandi che 
> possono generare errori per un cattivo uso si cancellerebbe quasi 
> tutto il C.
>
>

"Formally, the goto statement is never necessary"

"With a few exceptions like those cited here, code that relies on goto 
statements is generally harder to understand and to maintain than code 
without goto s. Although we are not dogmatic about the matter, it does 
seem that goto statements should be used rarely, if at all."

kernighan & ritchie ;P
ciao :D

-- 
It is a good day to die. But the day is not yet over.

-------------- parte successiva --------------
Un allegato HTML è stato rimosso...
URL: <http://ml.bilug.linux.it/pipermail/linux/attachments/20140224/cfad3370/attachment.html>


Maggiori informazioni sulla lista Linux