Y
Hacker News
new
|
ask
|
show
|
jobs
by
alexis-d
5429 days ago
I agree with most of the article, except the yes/no part. In fact I think it's better to do :
"Do you want to do this (Y/n)?"
Where the most common option is uppercase so I can just hit enter.
1 comments
dmpatierno
5429 days ago
The important point here is to at least require that <Enter> key, rather than just using getchar() or whatever else and continuing on unexpectedly.
link