2 ms·
The first example is missing the scope brackets likely enclosing the expressions, and there should probably be a few semi-colons.
by kgwxd 7y ago
The first example is missing the scope brackets likely enclosing the expressions, and there should probably be a few semi-colons.
- wostusername 7y ago>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)))
- blunte 7y ago1st example: 10 symbols: (){=,=(,)} 2nd example: 10 symbols: ([]([]()))
- lkschubert8 7y agoThe 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.