[Gambas-user] Another syntax sweetness question and request
Benoît Minisini
g4mba5 at gmail.com
Wed Mar 6 21:29:25 CET 2019
Le 06/03/2019 à 20:57, Cedron Dawg a écrit :
> Question:
>
> Which is preferred: "Function .. As .." -OR- "Sub .. As .." ?
>
> Anybody have a strong opinion?
>
> I lean towards, and am using, the latter. A step away from BASIC
> perhaps, but one fewer thing a newbie has to learn. More elegant.
>
>
> Request:
>
> Would it be possible to make subs return multiple values like Python
> can?
>
> That can be really handy.
>
You can use "ByRef" to return several values to the caller.
I don't think I would find a good syntax for returning several values,
nor a good implementation for that. Moreover I find that very difficult
to read.
Regards,
--
Benoît Minisini
More information about the User
mailing list