7 ms·
you 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 microserv
by hszeeks 7y ago
you 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.