Created
May 6, 2010 16:09
-
-
Save chaliy/392306 to your computer and use it in GitHub Desktop.
This file contains hidden or 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
type Order = { | |
Number : string | |
Date : DateTime | |
Items : { | |
ProductSKU : string | |
Quantity : int | |
} list | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
а нафига? и как ты будешь инитить анонимные внутренние типы?
let order = new Order ("a", DateTime.now(), new (???))
или
let order = new Order () //допустим
order.Items <- ???
update:
для records оно покатит (они там вроде по структуре матчатся),
let order = { Number=1; Date=DateTime.now(); Items = [ {ProductSKU="a"; Quantity=1} , ... ] }
а что с классами делать?