3 ms·
i wrote scala almost exclusively for 10 years and last year started doing more java. are there things i miss from scala? yes. self types. for comprehension. bet
by foolfoolz 4y ago
i wrote scala almost exclusively for 10 years and last year started doing more java. are there things i miss from scala? yes. self types. for comprehension. better list and collection syntax. scalas collection processing is probably the best there is.
are there things i don’t miss? yes. implicit. execution context on every future method. slow compiles. sbt
i couldn’t do java without records and “var”.
i don’t think scala has a real future. the binary incompatibility crushed scala for so long. sure scala 3 fixes it but not much has moved to 3. java is iterating at a faster pace than scala. they aren’t the same. scala was designed to be more terse and flexible and always will be.
but i don’t think that has made my programs worse in java. in some ways the lack of flexibility makes the code more predictable and easier to maintain