Community for F#

Blog articles of Community for F#

0
comment
on 12/29/2011 5:13 PM
I have a few quick rules of thumb which I follow when writing code.  Nothing earth-shaking or non-obvious; just simple ways that I avoid making the worst and most obvious mistakes. If you use a number or a string more than once, make it a constant.  Maybe even if you only use it once. Do [...]
>> Read the full article
.
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 you can see from below: So [...]
>> Read the full article
.
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?
>> Read the full article
.
0
comment
on 12/25/2011 1:31 PM
.
0
comment
on 12/21/2011 6:46 PM
Generic type parameters were introduced in C# 2.0, and they gave us the ability to write code that works against any type that matches a set of constraints and remove the need to create type-specific overloads, e.g.: A few years passed, and dynamic types was introduced in C# 4, which allows us to bypass compile-time [...]
>> Read the full article
.
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