[Gambas-bugtracker] Bug #1645: "where" clause in FOR EACH loop

bugtracker at gambaswiki.org bugtracker at gambaswiki.org
Thu Sep 5 00:12:12 CEST 2019


http://gambaswiki.org/bugtracker/edit?object=BUG.1645&from=L21haW4-

Comment #1 by Tobias BOEGE:

This would require adding `Where` as a new keyword to Gambas. Adding a new keyword
is technically not super easy and it might break programs which use `Where` as a
variable name without masking braces. Thus you need a very good reason to add a new
keyword. And even if you came up with a different word for your where-clause that
already is a keyword in Gambas, does it actually annoy you enough to write

  For Each Var1 As Byte In aBytes
    If Not (Var1 > 15) Then Continue
    ...
  Next

that you need dedicated syntax in loop constructs for this?




More information about the Bugtracker mailing list