4 Matching Annotations
- Feb 2021
-
sobolevn.me sobolevn.me
-
And we can specify types of wrapped values in a function return annotation, for example Result[float, ZeroDivisionError] returns either Success[float] or Failure[ZeroDivisionError].
-
Now you can easily spot them! The rule is: if you see a Result it means that this function can throw an exception. And you even know its type in advance.
-
- Sep 2020
-
svelte.dev svelte.dev
-
Components with TypeScript can be type-checked with the svelte-check command
-