4 ms·
what about scala?
by foderking 4y ago
what about scala?
- tm-guimaraes 4y agoIn general it's a mess. Very big language, so C++ issues. Different communities liking different subsets. Plenty of people "having to" use it, causing annoyance/hate. It's not great for teaching due to not only being big, but tooling for first time usage is also not great, and it doesn't hit the nice things about FP for first time programers: * functional syntax very similar to the way you defined functions in high school math class, or intros in college. ``` f : Z -> Z f(x) = x + 1 ``` is ``` f :: Int -> Int f x = x + 1 ``` in haskell (you can also omit domains/types/sets/signature in both). Familiarity is very important, which is why most programers do not like functional, and most people that haven't learned to program yet can start with it arguably more easily just not having statements, and everything being immutable is really nice (x=x+1 is cancer). Scala then has a whole lot of "class" stuff on top.