Skip to content

Commit e45bdc8

Browse files
authored
Details more why Fable is safer than TypeScript
Fix #235
1 parent 9b3fdb4 commit e45bdc8

1 file changed

Lines changed: 7 additions & 2 deletions

File tree

docs/docs/index.md

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -87,7 +87,7 @@ F# is a great choice to build applications that are robust and maintable code su
8787

8888
This is because F# has:
8989

90-
* Succinct lightweight syntax
90+
* Succinct lightweight syntax
9191
* Great type system and pattern matching
9292
* Immutability is the default, but you can still opt-in to mutability when needed
9393
* Supported by large companies (such as Microsoft and Jetbrains) and comes with commercial tooling support
@@ -104,4 +104,9 @@ With F#, your application will be safer, more robust and more pleasant to read a
104104

105105
TypeScript is safer then JavaScript but it still lacks some features.
106106

107-
For example, it doesn't really have a way to represent discriminated unions, and so it is easy to miss a case when you are using them. In F#, the compiler will tell you if you missed a case.
107+
For example, F# is best at:
108+
109+
- Making Illegal States Irrepresentable
110+
- Emmutable by default
111+
- Allows for easier domain modelling thanks to is type system and intuitive `|>` (pipe) operator
112+
- Has powerful and exhastive pattern matching

0 commit comments

Comments
 (0)