News for hackers. Stuff that matters.
Re:Type system of Fortnite's Verse language by foderking on Thursday March 30, 2023 @04:59AM (#35369892)
what about scala?
Re:Type system of Fortnite's Verse language by tm-guimaraes on Thursday March 30, 2023 @08:21AM (#35371504)
In 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.