Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

>(incf (elt vector 2)) ..versus.. ++vector[2]

One reason I like Lisp is that I don't have to think about operator precedence.



Math expression: a(8b^2+1)+4bc(4b^2+1)

In LISP: (+ (* a (1+ (* 8 b b))) (* 4 b c (1+ (* 4 b b))))

Oh, that silly operator precedence, lets just jam our heads in a vice while we unravel the nesting.




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

Search: