当前在线人数16701
首页 - 分类讨论区 - 电脑网络 - 葵花宝典版 -阅读文章
未名交友
[更多]
[更多]
文章阅读:Re: FP in C# or F#
[同主题阅读] [版面: 葵花宝典] [作者:tan00001] , 2014年12月05日02:39:32
tan00001
进入未名形象秀
我的博客
[上篇] [下篇] [同主题上篇] [同主题下篇]

发信人: 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.

: Personally



--
※ 来源:·WWW 未名空间站 网址:mitbbs.com 移动:在应用商店搜索未名空间·[FROM: 68.]

[上篇] [下篇] [同主题上篇] [同主题下篇]
[转寄] [转贴] [回信给作者] [修改文章] [删除文章] [同主题阅读] [从此处展开] [返回版面] [快速返回] [收藏] [举报]
 
回复文章
标题:
内 容:

未名交友
将您的链接放在这儿

友情链接


 

Site Map - Contact Us - Terms and Conditions - Privacy Policy

版权所有,未名空间(mitbbs.com),since 1996