mirror of
https://github.com/adambard/learnxinyminutes-docs.git
synced 2024-12-23 17:41:41 +00:00
commit
c5d7f6e72e
@ -335,10 +335,10 @@ module DataTypeExamples =
|
|||||||
let worker = Worker jdoe
|
let worker = Worker jdoe
|
||||||
|
|
||||||
// ------------------------------------
|
// ------------------------------------
|
||||||
// Modelling with types
|
// Modeling with types
|
||||||
// ------------------------------------
|
// ------------------------------------
|
||||||
|
|
||||||
// Union types are great for modelling state without using flags
|
// Union types are great for modeling state without using flags
|
||||||
type EmailAddress =
|
type EmailAddress =
|
||||||
| ValidEmailAddress of string
|
| ValidEmailAddress of string
|
||||||
| InvalidEmailAddress of string
|
| InvalidEmailAddress of string
|
||||||
@ -526,7 +526,7 @@ module AsyncExample =
|
|||||||
|> Async.RunSynchronously // start them off
|
|> Async.RunSynchronously // start them off
|
||||||
|
|
||||||
// ================================================
|
// ================================================
|
||||||
// .NET compatability
|
// .NET compatibility
|
||||||
// ================================================
|
// ================================================
|
||||||
|
|
||||||
module NetCompatibilityExamples =
|
module NetCompatibilityExamples =
|
||||||
|
Loading…
Reference in New Issue
Block a user