Pythy
Pythy copied to clipboard
Improved syntax?
Can the syntax be improved to make the following example work?
AUTO_PYTHY(min)(x, y)(
return x < y ? x : y;
)
I don't think thats possible, since the name and the arguments need to be used in multiple places. In the future, I may support syntax like this:
$(pythy(min)(x , y))
(
return x < y ? x : y;
)
Seriously?, how is it possible to make use of the "$" character in C++ syntax? Thanks for the great work.