home bbs files messages ]

Forums before death by AOL, social media and spammers... "We can't have nice things"

   comp.os.vms      DEC's VAX* line of computers & VMS.      264,096 messages   

[   << oldest   |   < older   |   list   |   newer >   |   newest >>   ]

   Message 263,095 of 264,096   
   Waldek Hebisch to Simon Clubley   
   Re: BASIC (was Re: extending MySQL on VM   
   27 Aug 25 15:03:52   
   
   From: antispam@fricas.org   
      
   Simon Clubley  wrote:   
   > On 2025-08-25, Arne Vajhøj  wrote:   
   >> On 8/24/2025 10:34 PM, Lawrence D?Oliveiro wrote:   
   >>>   
   >>> One trick they missed was allowing interval comparisons like this:   
   >>>   
   >>>      if "0" <= ch <= "9" or "a" <= ch <= "f" or "A" <= ch <= "F" :   
   >>>   
   >>> I think only Python has that.   
   >>   
   >> Yes.   
   >>   
   >> But note that the feature is not "interval comparison" but   
   >> "chaining comparison operators".   
   >>   
   >> The above example is very readable and makes sense.   
   >>   
   >   
   > Just don't try getting that code past me without first having used   
   > brackets around the subexpressions. :-)   
      
   Well, brackets would break it:   
      
   >>> 1 < 3 < 4   
   True   
   >>> 1 < (3 < 4)   
   False   
      
   If you want add "can not use brackets inside" as bad feature of Python   
   chaining.   
      
   --   
                                 Waldek Hebisch   
      
   --- SoupGate-Win32 v1.05   
    * Origin: you cannot sedate... all the things you hate (1:229/2)   

[   << oldest   |   < older   |   list   |   newer >   |   newest >>   ]


(c) 1994,  bbs@darkrealms.ca