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,010 of 264,096    |
|    =?UTF-8?Q?Arne_Vajh=C3=B8j?= to All    |
|    Re: extending MySQL on VMS    |
|    18 Aug 25 15:55:23    |
   
   From: arne@vajhoej.dk   
      
   On 8/18/2025 3:42 PM, Arne Vajhøj wrote:   
   > On 8/18/2025 8:37 AM, Simon Clubley wrote:   
   >> On 2025-08-15, Arne Vajhøj wrote:   
   >>> In general I like the idea of writing code in a way that does   
   >>> not require the reader to have memorized ten thousand things from   
   >>> the language spec.   
   >>>   
   >>> But I do not consider this a matter of remembering the specific   
   >>> details about an operator - I consider this a matter of remembering   
   >>> what operator a symbol represent.   
   >>>   
   >>> I consider "short circuiting AND" and "non short circuiting AND"   
   >>> to be two different operators.   
   >>   
   >> They are not. One is a subset of the other and both carry out the   
   >> same core operation.   
   >>   
   >>> And in C then && is the first operator not the second operator.   
   >>>   
   >>> And understanding what operator each symbol represent is not   
   >>> detail but core. IMHO.   
   >>>   
   >>   
   >> I disagree. Strongly. Both operators do exactly the same thing which   
   >> is to implement a logical AND. Code written using this operator   
   >> generates exactly the same logical AND result regardless of whether   
   >> short circuiting is in use or not.   
   >>   
   >> In addition however, a short circuiting compiler generates code to   
   >> stop evaluation if the previous logical AND subexpression was false.   
   >> This is a feature of the compiler and does not turn logical AND into   
   >> something which does something other than logical AND.   
   >   
   > Considering two operators the same because the functionality of one is   
   > a subset of the functionality of the other seems unlogical to me.   
   And some languages have both operators.   
      
   C is a bit messy. Pun intended.   
      
   But John already mentioned VMS Pascal:   
      
   https://docs.vmssoftware.com/vsi-pascal-for-openvms-reference-ma   
   ual/#LOGICAL_OP_SEC   
      
   and I mentioned VB.NET:   
      
   https://learn.microsoft.com/en-us/dotnet/visual-basic/language-r   
   ference/operators/logical-bitwise-operators   
      
   Arne   
      
   --- 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