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

>The first example is missing the scope brackets likely enclosing the expressions

Sure, but so is the Clojure one. So I guess it's more like:

    fun bar () {
      let x = 5,
          y = 10
      foo(x,y)
    }
vs

    (defn bar []
      (let [x 5 
            y 10]
        (foo x y)))



The clojure example was not missing the "scope brackets". That's exactly what let is. The equivalent c like in your first example should just be enclosed in brackets.


1st example: 10 symbols: (){=,=(,)} 2nd example: 10 symbols: ([]([]()))




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

Search: