User Tools

Site Tools


projects:fsharp_workshop

This is an old revision of the document!


F# workshop

  • f(x) = Hello_Word
  • Type providers (strongly typed)
  • Matching
  • Options

How to use? Where to get?

Try F# in browser: http://www.tryfsharp.org/Create

Want to get a full distribution? http://fsharp.org/ → Use F#

[Hello]

let hello = printf "Hello World"

Why?

Pros:

  • Open Source
  • Multi platform (Mono, .NET core)
  • Modern, rising popularity
  • Lazy evaluation
  • Reusable
  • Reduced code
  • Strongly typed

Cons:

  • Not suitable for real time (unpredictable performance)
  • Different thinking process (you need to re-learn)

↘ C# equivalent

↘ C# equivalent

Since you want to know more, here is an explanation with more details […]

Pitfalls and drawbacks

Functional languages fundamentally don't model how your computer works. Harder to optimize.

References

projects/fsharp_workshop.1429299328.txt.gz · Last modified: 2015/04/17 21:35 by mkucia