[Gambas-user] Is the &= efficient?

Gianluigi bagonergi at gmail.com
Wed Mar 6 15:25:20 CET 2019


I like very much Inc and Dec

Il giorno mar 5 mar 2019 alle ore 22:59 Cedron Dawg <cedron at exede.net> ha
scritto:

> I'm sorry, I should have specified, I meant on a syntactic sweetness scale.
>
>
> ----- Original Message -----
> From: "Benoît Minisini" <g4mba5 at gmail.com>
> > Do you prefer
> >
> > Inc x
> > Dec x
> >
> > or
> >
> > x += 1
> > x -= 1
> >
> > ?
> >
>
> No difference, it compiles to the same bytecode.
>
> --
> Benoît Minisini
>
> ----[ Gambas mailing-list is hosted by https://www.hostsharing.net ]----
>
> ----[ Gambas mailing-list is hosted by https://www.hostsharing.net ]----
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.gambas-basic.org/pipermail/user/attachments/20190306/82325def/attachment.html>


More information about the User mailing list