摘要: 责任链模式(在F#中的实现:) 以下示例代码:确保人的年龄在18到65之间,体重不超过200,身高大于120 type Record = { Name : string; Age : int; Weight: float; Height: float;} let ChainOfResponsibility() = let validAge (record:Record) = record.Age < 65 && record.Age > 18 let validWeight (record:Record) = ... 阅读全文
posted @ 2012-07-09 15:55 墨梅 阅读(576) 评论(0) 推荐(0)
摘要: F# WPF Form – the basicsI was listening to Dot Net Rocks show#560about F# and during the podcast Richard Campbell brought up a good point with regards to F# and a GUI. In essence what I understood his point to be was that until one could write an end to end application in F#, it would be a hard sell 阅读全文
posted @ 2012-07-09 09:33 墨梅 阅读(1212) 评论(0) 推荐(0)