[Gambas-user] Auto-spacing Strings would be nice. (like with Print s1; ; s2)

Bruce Steers bsteers4 at gmail.com
Thu Feb 10 14:54:32 CET 2022


On Thu, 10 Feb 2022 at 13:40, Benoît Minisini <g4mba5 at gmail.com> wrote:

> Le 10/02/2022 à 14:34, Bruce Steers a écrit :
> >
> > You know how
> > Print  "String 1"; "String 2"
> > Prints
> > String 1String2
> > and
> > Print  "String 1";; "String 2"
> > Prints
> > String 1 String 2
> > ...
> >
> > Something like...
> > sStr = "String 1" && "String 2"
> > to auto-insert a space (if required) would be awesome.
> >
> > and maybe even...
> > sStr = "String 1" &n "String2"
> > or
> > sStr = "String 1" &\ "String2"
> > for inserting LF ?
> >
> > Just saying n all:)
> > Or do things like that just slow the interpreter down?
> >
> > Wising well
> > BruceS
> >
> >
> >
> > ----[ http://gambaswiki.org/wiki/doc/netiquette ]----
>
> I'm usually against introducing a new syntax that will just save a few
> lines of code and be used rarely. I'd like the interpreter to be as
> small as possible.
>
> Regards,
>
> --
> Benoît Minisini
>

I understand.
It just seems like something is missing though where Print/Debug has ;; to
concatenate with a space but there is nothing the same with using a string
assignment.


Wishing well
BruceS
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.gambas-basic.org/pipermail/user/attachments/20220210/7dce36bf/attachment.htm>


More information about the User mailing list