发信人: tan00001 (声明), 信区: Programming
标 题: Re: FP in C# or F#
发信站: BBS 未名空间站 (Fri Dec 5 02:39:32 2014, 美东)
Light-weight is the key. If you grow your objects with more complexity,say
with more overloaded methods with different implementation for different
types, you would probably have to ditch discriminated union anyway.
【 在 nkw (非死非活) 的大作中提到: 】
: discriminated union is light weight and it's used everywhere. think about
: define 10 different class hierarchies for a page of code.
: even though they may be used to solve some similar problems, i'm wondering
: if they are semantically the same.
※ 来源:·WWW 未名空间站 网址：mitbbs.com 移动：在应用商店搜索未名空间·[FROM: 68.]