3 ms·
I've always been interested about F#. How are the effects done in the language? If using monads, does it have something similar to Haskell's do notation or Scal
by pimeys 9y ago
I've always been interested about F#. How are the effects done in the language? If using monads, does it have something similar to Haskell's do notation or Scala's for notation? What are the good resources to read how to start F# development on Linux?
- lkitching 9y agoF# has syntactic support for monads called computation expressions (https://docs.microsoft.com/en-us/dotnet/fsharp/language-reference/computation-expressions https://docs.microsoft.com/en-us/dotnet/fsharp/language-refe...). There are a couple of these included in the standard library (seq and async). However the language is impure so you are free to put side-effects anywhere you want without encoding it in your types.