Is there a workaround to define an empty tuple like (,)?
This SO entry explains it is not possible: https://stackoverflow.com/a/73758150/2539623
You just write ().
That SO post is about how you cant make an empty tuple with a specific element type (because it has no elements)
Thank you @Mason Protter !
Júlio Hoffimann has marked this topic as resolved.
I always found it dumb that (,) didnt work.
tuple() produces an empty tuple too.
Last updated: Nov 27 2025 at 04:44 UTC