Types issue in F#

Posted by Andry on Stack Overflow See other posts from Stack Overflow or by Andry
Published on 2010-12-23T14:48:39Z Indexed on 2010/12/23 14:54 UTC
Read the original article Hit count: 388

Filed under:
|

Hello! In my ongoing adventure deep diving into f# I am understanding a lot of this powerful language but there are things that I still do not understand so clearly. One of the most important issues I need to master is types.

Well the book I am reading is very straight forward and introduces entities and main functionalities with a direct approach. The first thing I could get start with is types. It introduces the main types as list, option, tuples, and so on... It is clearly underlined that all these types are IMMUTABLE for many reasons regarding functional programming and data consistance in functional programing. Well, no problems until now...

But now I am getting started with Concrete Types...

Well... I have problems in managing with types like list, option, tuples, types created through new operator and concrete types created using type keyword (for abbreviations, concrete types...).

So my question is: how can I efficently catalogue/distinguish all types of data in f#????

I can create a perfect separation among types in C#, VB.NET... FOr example in VB.NET there are value and reference types while in C# there are only references and also int, double are treated as objects (they are objects while in VB.NET a value type is not a object and there is a split in types for this reason). Well in F# I cannot create such differences among types in the language. Can you help me? I hope I was clear.

© Stack Overflow or respective owner

Related posts about .NET

Related posts about types