3 ms·
These are scala's macros? Lisp/clojure/scheme guys are probably laughing right now. I have nothing against scala but they really need to shoehorn every possible
by islon 14y ago
These are scala's macros? Lisp/clojure/scheme guys are probably laughing right now.
I have nothing against scala but they really need to shoehorn every possible feature in the language?
- kenbot 14y agoScala's feature-space is admittedly crowded, but there is a method to the madness. Scala's core design is generally to use a small number of rules to create a wide range of possibilities; the macro design they've chosen fits right in. At the cost of almost no extra syntax, a whole range of things that would have required compiler plugins, special language features, or been flat-out impossible are enabled. It's (probably) a cheap win in this case.
- islon 14y agoI agree, macros are a nice addition to the language and I would choose scala over java anytime. What bothers me is that scala has so much syntactic sugar one can die of diabetes just by looking at some source code.
- soc88 14y agoCare to explain? I have not experienced that. From which language do you come from? It certainly has less syntactic sugar than Java...