Re:Not Lisp again (2009)
by Will_Parker on Tuesday May 02, 2017 @01:59PM
(#14248816)
I'll give you that but also, ask 100 random people what "3/4" means and what "(/ 3 4)" means.
[ Parent
| on HN ]
Yes, I'm sure hardly any would say "three fourths" for (/ 3 4) and a lot of them would for 3/4. (A lot of them might also say "three or four".)
Incidentally Scheme syntax recognizes 3/4 as a rational number. It will do rational arithmetic without floating point problems.
Are you sure random people are going to recognize "3/4" notation? It could be different for "3 ÷ 4", but I think "3/4" is not widely used outside of programming?
Have you ever looked at a cookbook?
http://www.tasteofhome.com/recipes/how-to-cook/how-to-cut-do...
Taken a drive?
https://c1.staticflickr.com/5/4149/5174138836_6603010a7d_b.j...
It is a country-specific convention. What's written as e.g. ½ in US would be more commonly written with a horizontal dividing line in many other places, or simply as 0.5. Similarly, 2.5 instead of 2½ etc.
No, I didn't... At least, not in English. Good to know, thanks.
It's used outside of programming in, say, mathematics. :)
Re:Not Lisp again (2009)
by syncsynchalt on Tuesday May 02, 2017 @05:40PM
(#14250876)
Racket (and others?) gives you a sugar of (n . / . d) to infix any two-arg function if that's a stumbling block.