1
I know these two terms don’t exist in the same language (correct me if I’m wrong), but in some languages (C#, in the example below), we have the following code:
if(condicao){
...
} else if (condicao) {
...
}
In others (Perl, in the example below), we have:
if (condicao) {
...
}
elsif (condicao) {
...
}
The two probably do the same thing, but is there any difference in their logic? Or in the way they are interpreted/compiled by the computer? Or is it just related to the syntax of the language itself?
It’s just syntactic sugar.
– Anderson F. Viana