Y
Hacker News
new
|
ask
|
show
|
jobs
by
yesenadam
2671 days ago
Why not use good ol 'x' for multiplication? :-)
2 comments
manwithaplan
2671 days ago
I keep AltGr+8 mapped to × for just such an emergency.
link
frosted-flakes
2671 days ago
The Compose key works great for this (I use WinCompose on Windows). Most of the time I can guess the key combination. I think × is Compose, x, x.
link
computerfriend
2671 days ago
'x' is a letter, not the times symbol.
link
janaagaard
2671 days ago
But if you have to choose between '\*' and 'x', then 'x' might well be the best choice, no? :-)
link
rjeli
2671 days ago
If they had used ‘x’ instead, I would be scouring the comment for where the variable had been introduced.
link
yesenadam
2671 days ago
Ok, use 'x' and write "(note that 'x' means multiplication)" instead of "(note that \* means multiplication, there doesnt seem to be a way to escape an asterisk)". More legible and shorter and 'symbol is already used for the purpose' and..
link
pbhjpbhj
2671 days ago
It is _a_ multiplication symbol. Why not use period ".".
link
yesenadam
2671 days ago
Because there are a lot of those in the vicinity and it's very small?
link