evalexpr
evalexpr copied to clipboard
Support size one tuples
Tuples are required to be created with the comma operator as of now. It should be possible to create size one tuples using parentheses as well.
I'd love to look into this one as well -- In my project I am dynamically mapping values from a database to evaluate custom validations. Some of these might be vecs/arrays of length 1. It seems that tuples with length 1 convert to primitive types in this case?
Good point, that is true. So far, tuples are created by the comma operator, which is n-ary for n at least 2. Maybe a simple built-in function could help? Something like tuple
or so.