2 ms·
>Contrary to popular belief, Scala is actually quite a simple language. Interesting. Then why do some people say it is not? Anecdotal, mind you, and don't have
by vram22 7y ago
>Contrary to popular belief, Scala is actually quite a simple language.
Interesting. Then why do some people say it is not? Anecdotal, mind you, and don't have links right now.
- hszeeks 7y agoyou are right, should have said "i think it is a simple language". <edit> what makes me think it is a simple language (especially if you are writing microservices): - class is a class, and you don't really need to explain the modifier - object is just an object, like if a class is instantiated, and it is a singleton - trait gives you mixin, cake pattern / self type - Future makes async programming simple - for yield -> to avoid nested map / flatMap - val for everything, instead of final static - case class, such a life saver to build immutable data objects Some libraries like Slick adds up complexity but the benefit i think far outweigh the difficulty of learning it.
- vram22 7y agoThanks for the answer. I had not heard of the cake pattern, will check it out.