in reply to u+ fails to force scalar context to empty list assignment: +( () = ... )

Interesting (I expected a compilation error here, similar as with number predecrement, e.g. --5):

A numeric literal doesn't return an lvalue, but an assignment in scalar context returns an lvalue. See Mini-Tutorial: Scalar vs List Assignment Operator.

  • Comment on Re: u+ fails to force scalar context to empty list assignment: +( () = ... )