Yan Cui's blog articles

0
comment
on 8/10/2012 3:10 PM
In C#, you can define an explicit operator for your type using the explicit keyword: In F#, this will look something like this:
>> Read the full article
.
0
comment
on 8/9/2012 1:01 AM
You can specify a function which can take in a numeric value with a generic unit of measure easily enough: Similarly, you can also specify a discriminated union whose clauses can be of a numeric value with a generic unit of measure, like this:
>> Read the full article
.
0
comment
on 8/9/2012 12:50 AM
Peculiarly I couldn’t find any documented way to create a type extension for a generic array, ‘a [ ], turns out you need to use backtick marks ( ‘ ) around the square brackets in order to do that:
>> Read the full article
.
0
comment
on 8/4/2012 5:51 PM
Note: Don’t forget to check out Benchmarks page to see the latest round up of binary and JSON serializers. Following on from my previous test, I have now included JsonFx and as well as the Json.Net BSON serializer in the mix to see how they match up. The results (in milliseconds) as well as the [...]
>> Read the full article
.
0
comment
on 7/29/2012 6:28 AM
Considering a very simple finite state machine (FSM) such as a code lock which requires you to enter a 4-digit numeric code and upon which will open the lock for a brief few seconds. Such a FSM have two states: Locked and Open. Every time a key is entered it checks the sequence of digits [...]
>> 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