I guess I don't really be competent to answer this, but basically you just write data without methods (for example type MyType = { Name : string; Value : float } and use functions (for example in a module) to transform those data.

In OO you would write your functions as members of the class MyType.

It's more or less the way you used to think of data in languagues like BASIC and PASCAL ;)

IMHO it's a good practice in FP because you generally don't change data but transform/map it. And if you use member-methods you allways get the OOP-feeling.

By on 5/2/2011 4:54 AM ()
IntelliFactory Offices Copyright (c) 2011-2012 IntelliFactory. All rights reserved.
Home | Products | Consulting | Trainings | Blogs | Jobs | Contact Us | Terms of Use | Privacy Policy | Cookie Policy
Built with WebSharper