This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
class Example | |
{ | |
// "init-anywhere" syntax (along the lines of Haskell) | |
[Implemented(true)] | |
Foo Do() | |
{ | |
var x = new Foo { bar = 1 }; // <- currently available | |
return x { bar = 3 }; // <- proposed (note that this mutates unlike Haskell) | |
} | |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
System.IO.Directory.SetCurrentDirectory __SOURCE_DIRECTORY__ | |
// The following DLLs were fetched using NuGet | |
#r @".\packages\FsCheck.0.9.2.0\lib\net40-Client\FsCheck.dll" | |
#r @".\packages\NUnit.2.6.3\lib\nunit.framework.dll" | |
open FsCheck | |
open NUnit.Framework | |
// ====================================== |