一种语言/框架/API 中您最喜欢的功能是什么
您认为一种语言(C、C++、JAVA、Ruby)或框架(Hibernate、Rails,...)的出色设计是什么?我认为每一项都让它变得特别。因此,我问你们每个人,您认为在一种语言/框架/中什么功能或设计/代码是伟大的...
例如:iPhone目标的C委托模式很棒。
What do you think is awesomely designed in one language (C, C++, JAVA, Ruby) or framework (Hibernate, Rails, ....) ? I think every one of these as something that makes it special. Therefore I'm asking each an everyone of you, what feature or piece of design/code do you think is great in one language/framework/...
For instance : iPhone objective's C delegation pattern is awesome.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(3)
this
this
in method bodies in OOP languages模式匹配,使用任何支持它的语言。对于不提供任何模式匹配的语言来说,它确实是一个阻碍。
列表推导式 - 相同,可用时必不可少,没有时很痛苦。
闭包
内置文档支持:Lisp、CWEB、Javadoc 等中的文档字符串。
Pattern matching, in any language that supports it. And it's really a showstopper for languages that do not provide any.
List comprehensions - the same, essential when they're available, pain when there are none.
Closures
Built-in documentation support: docstrings in Lisp, CWEB, Javadoc, etc.
到目前为止,我一直发现
LINQ
在 C# 中非常迷人且非常有帮助。但是,在展望了 C# (5.0) 的未来之后,我对异步模式以及它将让很多人的生活变得更轻松这一事实感到非常兴奋。
还有很多我喜欢的其他功能(给出了优先级列表):
async
LINQ
(当我必须在短时间内处理 2.0 项目时,我意识到使用LINQ
是多么容易)Lambda 表达式
内置
迭代器
模式内置
observable< /code> 模式
Up to this point, I have always found
LINQ
very fascinating and very helpful in C#.But, after looking at the future of C# (5.0), I am really excited about the
async
pattern and the fact that it will make a lot of people's lives easier.There are a lot of other features I love (given is a priority list):
async
LINQ
(I realized how much easier it is to work withLINQ
when I had to work on a 2.0 project for a short period of time)Lambda expressions
Built-in
iterator
patternBuilt-in
observable
pattern