Re: F# fsharp
Lionel Barret De Nazaris <[email protected]>
| Newsgroups | gmane.games.devel.sweng |
|---|---|
| Message-ID | <[email protected]> |
I am really wondering if we should look at Lisp for functional programming success. Many programmer use FP but in an imperative language, simply because it is too hard to do otherwise. Hard to connect it with the other tools/lib and there is already so much code already there. Still, in some sense, they are doing FP. About F#, yep that should be a slam dunk but saying FP is the best way to scare people. On 05/26/2010 05:35 PM, Brandon Van Every wrote: > On Wed, May 26, 2010 at 6:03 AM, Morten Brodersen<[email protected]> wrote: > >> I always find it amusing when Paul Graham (or Crash Bandicot for that >> matter) gets dragged out of the closet and dusted off whenever somebody >> wants to show how functional languages "gives you an edge". >> >> There are thousands of successful products (including games) programmed in >> non-functional programming languages and only an extremely limited set of >> successful products programmed in functional languages. There aren't many >> examples to pick from. So that's why people still talk about Paul Graham >> today many many years after he became mightily impressed with his own LISP >> skills and started bragging about it on his website. >> > Indeed, if LISP is such a wonderful engine of industrial success, why > aren't there many more examples to draw upon? > > >> And hey don't get me wrong. I am having great fun programming in LISP, >> Clojure and Erlang in my spare time and I would highly recommend that you >> learn those languages even if you don't intend to use those languages to >> make a living. However I still choose C++ or C# for production work. >> > But for game development, let's leave the "functional" hoopla out of > it and return to some of my original questions. F# is a > multi-paradigm language, it is not "pure" functional the way Haskell > is. OCaml already proved that you can mix functional and OO > programming just fine without sacrificing performance; F# is the same. > Some people say they're using C# as a "scripting" language. F# is > clearly a better scripting language than C#. For one thing, F# has > got an interpreter available. For another, it's got lists built > straight into the syntax, and other "higher level" programming > goodies, like pattern matching and type inference. So if it compiles > to pretty close the speed of C#, why would you ever choose C# over F# > as a *scripting* solution? The only reason I can see, is lack of > familiarity with F#. > > F# vs. Lua, well that's a whole 'nother debate. But F# vs. C#? > Should be a slam dunk. > > > Cheers, > Brandon Van Every > _______________________________________________ > Sweng-Gamedev mailing list > [email protected] > http://lists.midnightryder.com/listinfo.cgi/sweng-gamedev-midnightryder.com > -- Best regards, Lionel Barret de Nazaris Gamr7 - CEO === Create bigger cities faster with Urban PAD <http://gamr7.com/g2009/urban_pad>. follow us : rss <http://gamr7.com/g2009/default/feed.rss>, twitter <http://twitter.com/Gamr7>, facebook <http://www.facebook.com/pages/Urban-PAD/124363971359> _______________________________________________ Sweng-Gamedev mailing list [email protected] http://lists.midnightryder.com/listinfo.cgi/sweng-gamedev-midnightryder.com