Hacker News new | past | comments | ask | show | jobs | submit login

Scheme, Common Lisp.

Neither Java nor CL were intended for the novice; I'm sure Mr. Steele had Scheme in mind.




I think there is also a gotcha there as you get a ratio in Common Lisp and not a floating point number.

> (print (format t "1 divided by 2 is ~a and its type is ~a" (/ 1 2) (type-of (/ 1 2))))

> 1 divided by 2 is 1/2 and its type is RATIO

I don't think there is a simple solution. Numbers are harder than they seem and you just need to know what happens in the particular language you are programming in.


Arguably that's not a gotcha. It's (probably) his point.




Consider applying for YC's Spring batch! Applications are open till Feb 11.

Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: