[Gambas-user] Another syntax sweetness question and request

Tony Morehen tmorehen at ajm-software.com
Thu Mar 7 00:47:38 CET 2019


An alternative to returning multiple values is to return a Gambas native 
class such as point, rect, rectf etc

It may be worthwhile to add some other native classes to Gambas, such as:

tuple (variant, variant)

ntuple (integer,variant)

ftuple (float, variant)

stuple (string, variant)

On 2019-03-06 2:57 p.m., Cedron Dawg wrote:
> 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.
>
>
> Thanks.
>
>
> ----[ Gambas mailing-list is hosted by https://www.hostsharing.net ]----



More information about the User mailing list