3 ms·
What do you mean pure F#? Majority of providers in FSharp.Data [1] are idiomatic F# code (also contains imperative & a bit of C#ness to use lib outside F#) 1.
by tegeek 12y ago
What do you mean pure F#?
Majority of providers in FSharp.Data [1] are idiomatic F# code (also contains imperative & a bit of C#ness to use lib outside F#)
1. http://fsharp.github.io/FSharp.Data/ http://fsharp.github.io/FSharp.Data/
- jarcane 12y agoWhat I mean is writing a desktop application without falling back to using C# for all the front-end code and relegating F# to being a glorified DSL for data processing. Microsoft doesn't believe anyone wants to make apps in F#; Visual Studio doesn't even come with templates for it. You're expected to use F# to write libraries like Fsharp.Data, and write your app code in C#. If I wanted to code in C#, I'd code in C#, but I don't.
- tegeek 12y agoA desktop app on Windows either uses WPF or WinForms. In either case F# doesn't stop at all. In fact I would say that building WPF desktop on F# is more intuitive than C#.
- louthy 12y agoopen System.Windows.Forms [<EntryPoint>] let main argv = let form = new Form() let button = new Button() button.Text <- "Click me" button.Click.Add (fun _ -> MessageBox.Show "Hello" |> ignore) form.Controls.Add button Application.Run form 0
- latkin 12y agoThere are some decent samples on MSDN, 56 in F# at the time of writing. Most aren't GUI apps, but some are. https://code.msdn.microsoft.com/site/search?f%5B0%5D.Type=ProgrammingLanguage&f%5B0%5D.Value=F%23&f%5B0%5D.Text=F%23&sortBy=Date https://code.msdn.microsoft.com/site/search?f%5B0%5D.Type=Pr... My "WPF Image Cropper" sample might be interesting to you - pure F# WPF via XAML type provider. I am not a GUI dev, though, so it's probably crap design :)
- jackfoxy 12y agoTemplates for F# projects, by the F# community, for use in Visual Studio, Xamarin Studio and other editors https://github.com/fsprojects/FSharpCommunityTemplates https://github.com/fsprojects/FSharpCommunityTemplates also go to http://fsharp.org/ http://fsharp.org/ or ask a question on S.O. or Twitter with tag #fsharp. And then there is also WebSharper http://websharper.com/ http://websharper.com/