4 ms·
Many moder programming languages allow arbitrary unicode symbols as variable names. I am now thinking about doing this in Python.
by Derbasti 13y ago
Many moder programming languages allow arbitrary unicode symbols as variable names. I am now thinking about doing this in Python.
- tomrod 13y agoFair enough. I use Sublime and write in python on Ubuntu. How might I go about incorporating Unicode?
- Derbasti 13y agoHmm, here's a thought: Instead of naming a function "sum", call it Σ, and similarly use √ instead of "sqrt". This would enable you to write things like rms = √(1/len(x)*Σ(x)) Which is really quite cool from a mathematical view point.