Is #Scala complicated?

preview_player
Показать описание


Cheers and Happy Coding!

#shorts
Рекомендации по теме
Комментарии
Автор

Never commit code with a trait 4 levels deep. But the fact that I can evolve code fluidly is why that flexibility is so useful. For instance I can easily turn a val into a parameterized def, or a def into a class, or a class into a trait, with much fewer edits than in most languages

nafg
Автор

keep things simple and if possible easy — familiar to people who wrote other languages, including natural languages.

gabrielgracenathanana
Автор

Yeah, what makes Scala simple or "regular" is not that you get to make traits four levels deep. It's that you don't have to remember arbitrary decisions about trait depth limits or other kinds of things as you use it.

thedownwardmachine
Автор

But why should a language allow its users to write unnecessarily complicated code, and thats the problem with scala...only in scala codebase i have seen people fine with methods having several hundred lines, methods having a long list of parameters, functions chained to make code literally readable....and all is ok as its 'functional'....scala doesnt seem to have a good future in my opinion

cccc