4 ms·
> using binary operators instead of awful things like Union Do you mean like https://www.python.org/dev/peps/pep-0604/#id17 https://www.python.org/dev/peps/pep
by moreati 7y ago
> using binary operators instead of awful things like Union
Do you mean like https://www.python.org/dev/peps/pep-0604/#id17 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]
- scrollaway 7y agoYeah. Good to see that's being added.