Hi Nathan, On Tue, Feb 25, 2020 at 11:58:58PM +0000, Nathan Edwards wrote:
I love regular expressions.
Regexes' terse syntax are normally considered rather the opposite of Pythonic.
I would love to see Bra-Ket notation and many of the popular mathematical forms commonly practiced in engineering and science supported by the Python language in an expressive and logical way. I feel the need for expressing mathematical concepts in a standardized and sightly way, beyond just being able to use Unicode equivalents of mathematical symbols, would be an enormous functional benefit.
You might find more interest if you make some concrete proposals rather than a vague, generic request for more mathematical syntax. Also keep in mind that Python is not a specialised language for mathematics. Its a generic language for everyone, which means the standard is "will the average programmer be able to read this?" not "will mathematicians be familiar with this syntax?". For example, the function for calculating standard deviation is written `statistics.stdev` not `σ`. -- Steven