Open momala454 opened 7 months ago
Yes, could be difficult in cases where different types are passed. eg max(1,'10')
will be string
, max(10,'1')
will be int
. With some custom handling it could be done, but I don't think it can be handled in a general sense with templates.
could something be made for when all arguments are the same type and keep mixed when they are different ?
Describe the bug We can know the type of max() instead of simply showing "mixed". When all arguments are of the same type, the output will be the same. When it's different, it's more complicated however.
To Reproduce
Expected behavior An int, not mixed
Screenshots
Platform and version 1.10.2