peng-lab/BaSiCPy

Consider using symbols as variable names instead of words

Closed this issue · 3 comments

Variable names could be symbols instead of words.

e.g.:

eplson = ε
mu = µ
mu_bar = µ_bar (can't find unicode for this)
rho = ρ
A1_hat = Â1
E1_hat = Ê1

So you want to use ε instead of epsilon? As an engineer I like the idea because it's more readable. From the viewpoint of productivity and practicality, I don't like the idea. If we had these keys on the keyboard then I'd be for it. It makes writing code more difficult because you have to either remember the code or copy and paste every time you want to use a variable. If this tool was less math heavy I don't think this would be a large burden.

Hi, thanks @tdmorello for opening this issue! As @Nicholas-Schaub mentioned, I understand this as to increase readability with scarification of "input-ability" (and potential problems with editors). Considering the amount of code, I think the balance tilts towards the input-ability (Latin notations) for this case.

Good points!