发信人: Deling (流浪歌手-爬爬死爬腰酸), 信区: DotNet
标 题: Re: 你们最不喜欢.net的什么？
发信站: BBS 未名空间站 (Fri Mar 9 14:14:38 2007), 转信
【 在 LifeAsWater (烟水寒) 的大作中提到: 】
: two bad things about delegate:
: 1. it is not type safe. it allows any methods which has the same signature
: to be a candidate even that method is not suppose to be.
This has NOTHING to do with type safety. Don't mix up type with semantics.
: 2. no easy way to group delegate.
: delegate is same as method name, when comparing method name vs. interface,
: it means delegate vs. interface approach.
Delegates are not as useful compared to general lamba abstraction (where
delegates rooted) because they are not treated as values as functional
languages do. That doesn't neccessarily mean they are a bad thing.
One small step for BSD, One giant step for PCs.
※ 来源:·BBS 未名空间站 mitbbs.com·[FROM: 24.16.]