Closed jagot closed 3 years ago
Could one define some Unicode up and down arrows as constants for this?
Yes of course. However, exporting those arrows is maybe not optimal? I tried to see if you could combine an arrow with an s
, but no go:
julia> Meta.@lower ↑
:↑
julia> Meta.@lower ↑s
ERROR: syntax: "↑" is not a unary operator
spin"↑"
is of course another possibility, but not sure if that reads better than spin"up"
.
This is no longer relevant since the magnetic quantum numbers are stored as HalfInteger
s starting with 1a7af4ec32619d24ec3f33f78d6642d5ca5b4443.
Then you could write
SpinOrbital(o"2p", 0, spin"up")
which reads better thanSpinOrbital(o"2p", 0, true)
.