Hi,
Interestingly `ELSEIF' appeared in `Oberon' Language as a single word (Pascal / Modula had it as two words `ELSE IF'). This simplifies `Oberon' language implementation while offering object features at no extra big expense, unlike c++.
Tomas
Super BASIC coding style for Minerva
Re: Super BASIC coding style for Minerva
I'm a bit at loss on where you guys seem to see a difference (apart from the <space> character) between an ELSEIF and an ELSE IF?
Tobias
Tobias
ʎɐqǝ ɯoɹɟ ǝq oʇ ƃuᴉoƃ ʇou sᴉ pɹɐoqʎǝʞ ʇxǝu ʎɯ 'ɹɐǝp ɥO
Re: Super BASIC coding style for Minerva
> I'm a bit at loss on where you guys seem to see a difference (apart from the <space> character) between an ELSEIF and an ELSE IF?
Well, ELSEIF and ELSE IF are different. In Bourne/Korn shell, IF statements don't have END IF, but FI (IF backwards) and CASE ends with ESAC (CASE backwards). Both of these drive me crazy and I prefer C shell where IF ends with ENDIF.
We all have our pet peeves when it comes to languages and structures.
Tim Swenson
Well, ELSEIF and ELSE IF are different. In Bourne/Korn shell, IF statements don't have END IF, but FI (IF backwards) and CASE ends with ESAC (CASE backwards). Both of these drive me crazy and I prefer C shell where IF ends with ENDIF.
We all have our pet peeves when it comes to languages and structures.
Tim Swenson
Re: Super BASIC coding style for Minerva
Hi,
IF [expression] THEN [command]
ELSIF [expression] THEN [command]
ELSIF [expression] THEN [command]
...
ELSE [command]
END.
ELSEIF is an extra word to ELSE in the `Oberon' construct so the lexical analyser has easier job.
Tomas
IF [expression] THEN [command]
ELSIF [expression] THEN [command]
ELSIF [expression] THEN [command]
...
ELSE [command]
END.
ELSEIF is an extra word to ELSE in the `Oberon' construct so the lexical analyser has easier job.
Tomas
Re: Super BASIC coding style for Minerva
That might or might not be easier, depending on the implementation of the lexer.tcat wrote: ELSEIF is an extra word to ELSE in the `Oberon' construct so the lexical analyser has easier job.
ql_freak, however, was pointing out a missing ELSEIF as a "missing feature of the S*Basic language". That's what I object to.
Tobias
ʎɐqǝ ɯoɹɟ ǝq oʇ ƃuᴉoƃ ʇou sᴉ pɹɐoqʎǝʞ ʇxǝu ʎɯ 'ɹɐǝp ɥO