Hacker News new | ask | show | jobs
by Jtsummers 1772 days ago
Not quite. + isn’t the last thing done (which it would be in Polish notation). Instead it’s done during the / operation.

Polish notation would be lisp (or the notion most people have for lisp, special forms and macros break it up a bit).

1 comments

Lisp is polish notation for trees of variable arity. hence all the parens - you need some way to group them.

So in some K flavoured LISP I think it would be

    ((/ +) (! 100))
Or in clojure with the threading macro

    (->> 100 range (reduce +))
which is equivalent to this, without the macro

    (reduce + (range 100))
yes, quite a bit more long winded than K