3 ms·
> Flix looks quite similar to Scala. How are the two languages related? > Flix borrows a lot of syntax from Scala, hence the two languages have a similar feel.
by james-redwood 4y ago
> Flix looks quite similar to Scala. How are the two languages related?
> Flix borrows a lot of syntax from Scala, hence the two languages have a similar feel. We think Scala made many good design choices with respect to syntax, including: (a) the use of short keywords, (b) the x : T syntax for type annotations, (c) the List[Int32] syntax for type parameters, and (d) if, match, etc. as expressions.
> Other than syntax, the two languages are very different: Scala is object-oriented, Flix is not. Scala has sub-typing, Flix does not. The Scala type system is unsound and has imperfect type inference, whereas the Flix type system is both sound and supports type inference.
https://flix.dev/faq/ https://flix.dev/faq/