Ruud H.G. van Tol on Wed, 07 Feb 2024 10:42:21 +0100


[Date Prev] [Date Next] [Thread Prev] [Thread Next] [Date Index] [Thread Index]

(expression)



Just an innocent example:

? my(i=3, n=3); n + (while(i--, n++);n)
  ***   syntax error, unexpected ')', expecting )-> or ',': ...,n=3);n+(while(i--,n++);n)
*** ^-

? my(i=3, n=3); n + if(1, while(i--, n++);n )
%2 = 8


Would it be useful to allow/support (expression)s like in the first format?

-- Ruud