News for hackers. Stuff that matters.
Re:F# Survey 2015 Results by jarcane on Tuesday April 14, 2015 @09:06AM (#9373878)
What 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.

Re:F# Survey 2015 Results by louthy on Tuesday April 14, 2015 @10:21AM (#9374427)

    open 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
Re:F# Survey 2015 Results by Avshalom on Tuesday April 14, 2015 @10:52AM (#9374672)
jarcane didn't say you can't he said the documentation is all but non-existant
Re:F# Survey 2015 Results by jdh30 on Tuesday April 14, 2015 @06:46PM (#9377835)
I have written thousands of pages of example applications in articles for the F# Journal.
Re:F# Survey 2015 Results by latkin on Tuesday April 14, 2015 @01:28PM (#9375848)
There 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=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 :)

Re:F# Survey 2015 Results by tegeek on Tuesday April 14, 2015 @09:58AM (#9374242)
A 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#.