Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Using of F# in a game engine

Tags:

f#

roguelike

I'm currently creating a roguelike game and have already started coding in C# but have not coded much (<1000 lines) so far...

Now again, I have had a look at F# and this language seems to be very cool...I'm considering now using F# for the game engine, which, I think, will be 90% of the codeline (A roguelike has a very 'lean' ASCII-UI).

Do you think, F# would be better suited than C# concerning writing coding for procedural content generation, complex AI and game logic? Do you see any traps (apart from that I have to master the language first, of course)?

I've some concerns if F# is not just a research project and will be abandoned by Microsoft or are there statements that it is now a major .NET language?

Thanks for your input.

like image 441
Marco Avatar asked Dec 28 '22 21:12

Marco


1 Answers

I don't see any traps.

F# fully supports .NET and even though it's mainly a functional languague you can implement the OO paradigma without a problem.

Also interop with C# is very well possible, so you could even go back to C# without giving up your F# code.

And as for it's future :

It's now part of VS as a stable language, so it's going very much in the direction of being one of the main .NET languages together with VB and C#.

like image 95
Peter Avatar answered Jan 04 '23 18:01

Peter