No argument names in abstract declaration?
可以将文章内容翻译成中文,广告屏蔽插件可能会导致该功能失效(如失效,请关闭广告屏蔽插件后再试): 问题: This is the typical declaration of an abstract member in F#: abstract member createEmployee : string -> string -> Employee You define the argument types but not their names. Without names, how do you tell what each parameter is when you implement the interface? In other words, how do you know if the interface expects to be implemented as 1- or 2-? 1- member this.createEmployee firstName lastName = ... 2- member this.createEmployee lastName firstName = ... Am I looking the problem from a wrong perspective (being used to C#)? 回答1: What about: