News for hackers. Stuff that matters.
Re:Reflecting on F# in 2017 by pimeys on Monday December 25, 2017 @01:15PM (#16005097)
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?
Re:Reflecting on F# in 2017 by lkitching on Monday December 25, 2017 @01:21PM (#16005124)
F# has syntactic support for monads called 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.