Blog articles tagged 'tips'

0
comment
on 2/20/2016 3:30 PM
One of those things that I keep searching on the internet, for examples and Howto’s is, how do you hide stuff in Fsharp?Hiding stuff can be very useful. When you create a library, or a DSL, or perhaps a framework, you want to provide a good user-experienc[...]
.
0
comment
on 2/14/2015 9:00 AM
Short blog this time. I am introducing Websharper at my employer’s, but while sharing, I had a few startup problems. Probably, this information is already on the internet somewhere, but as it took me a while to solve these issues, I thought I might write[...]
.
0
comment
on 2/11/2014 3:33 PM
One of the pitfalls with LINQ which I have fallen into on multiple occasions is around the use of the OfType<T> extension method with dictionaries. Either through carelessness or changes to the underlying variable (a class property being changed from list[...]
.
0
comment
on 1/9/2012 5:43 PM
In C#, you can use the object/collection initialization syntax like this: The F# equivalent of object initialization is done like this: As for collection initialization, you have a far more diverse range of tools available to you, for example: You can als[...]
.
0
comment
on 1/8/2012 9:29 AM
If you’re reading this post, you probably know about F#’s Units of Measure already, it’s very useful when working with real-world units and adds extra safety to code that needs to work with and convert from one unit to another. Here’s a quick snippet that[...]
.
0
comment
on 12/29/2011 4:41 PM
In C#, you define an empty class, struct, or interface like this: So how do you define an empty type in F#? Well, whenever you define a new class in F#, the compiler infers the class and end tokens at the beginning and end of the class’s definition, as yo[...]
.
0
comment
on 12/25/2011 5:24 PM
There’re a number of built-in literal types in F#, and one of the cool things you can do is to get the byte or byte array representation of a char or string using the ‘B’ suffix, the result is the same as Encoding.ASCII.GetBytes: Pretty cool, eh?
.
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

Logging in...