Hallo Martin,
Du schriebst am Sat, 10 Jun 2017 06:54:15 +0200:
> I don't like "sub" much but found nothing better up to now. I think that
"sub" seems to me to imply you're about to create a new BASIC variant.
Why not use "function" for all such things, if you don't like to
explicitely state
On Sun, Jun 11, 2017 at 4:58 PM, Edson H wrote:
> No so much, but In Pascal you need to do:
>
>
> if ... then
> begin //WARNING: If use more than a sentence, you need BEGIN-END
> ...
> end //DANGER: Don't put semicolon!
> else if ... then
> begin
On Sunday 11 June 2017 02:36:46 Sieghard wrote:
> Hallo Martin,
>
> Du schriebst am Sat, 10 Jun 2017 06:54:15 +0200:
> > I don't like "sub" much but found nothing better up to now. I think that
>
> "sub" seems to me to imply you're about to create a new BASIC variant.
> Why not use "function" for
On Sunday 11 June 2017 17:31:33 Edson H wrote:
> It's strange. Do you prefer to write?
>
>
> if ... then
>
> ...
>
> else
>
> if ... then
>
> ...
>
> else
>
> if ... then
>
> ...
>
> else
>
> ...
>
> end;
>
> end;
>
> end;
>
>
> Instead of?
>
>
> if ... then
>
>
On Sunday 11 June 2017 16:58:23 Marcos Douglas B. Santos wrote:
> On Sun, Jun 11, 2017 at 1:29 AM, Martin Schreiber
wrote:
> >> You need to have a return. If you have a object with a method "exec",
> >> eg, why not return the object itself? Just return something.
> >
> > Why?
On Saturday 10 June 2017 17:39:14 Edson H wrote:
>
> By the way, I haven't seen the keyword ELSIF in your IF syntax.
>
MSElang has no "elsif". I think nested structures should be written so that
the nested character is visible.
Martin
On Sun, Jun 11, 2017 at 1:29 AM, Martin Schreiber wrote:
>> You need to have a return. If you have a object with a method "exec",
>> eg, why not return the object itself? Just return something.
>
> Why?
Because you could write a more elegant code.
If you return "self" even in
It's strange. Do you prefer to write?
if ... then
...
else
if ... then
...
else
if ... then
...
else
...
end;
end;
end;
Instead of?
if ... then
...
elsif ... then
...
elsif ... then
...
else
...
end;
Don't see this like nested
On Sun, Jun 11, 2017 at 12:31 PM, Edson H wrote:
>
> Instead of?
>
> if ... then
> ...
> elsif ... then
> ...
> elsif ... then
> ...
> else
> ...
> end;
>
>
> Don't see this like nested IF. It's just a multiple conditional. More at the
> style of Modula-2 and the
No so much, but In Pascal you need to do:
if ... then
begin //WARNING: If use more than a sentence, you need BEGIN-END
...
end //DANGER: Don't put semicolon!
else if ... then
begin //WARNING: If use more than a sentence, you need BEGIN-END
...
end //DANGER: Don't put
10 matches
Mail list logo