|
|
|
|
|
by moreati
2437 days ago
|
|
> using binary operators instead of awful things like Union Do you mean like https://www.python.org/dev/peps/pep-0604/#id17 ? > Inspired by Scala language [5], this proposal adds operator __or__() in the root type. With this new operator, it is possible to write int | str in place of Union[int,str] |
|