一种语言/框架/API 中您最喜欢的功能是什么

发布于 2024-10-07 11:40:38 字数 148 浏览 0 评论 0原文

您认为一种语言(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 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(3

烟织青萝梦 2024-10-14 11:40:39
  • ML 系列语言中的模式匹配
  • OOP 语言中方法体中的隐式 this
  • 函数式语言中的闭包
  • Lua 和其他语言中的协程
  • Pattern-matching in the ML family of languages
  • Implicit this in method bodies in OOP languages
  • Closures in functional languages
  • Coroutines in Lua and other languages
故笙诉离歌 2024-10-14 11:40:38
  • 模式匹配,使用任何支持它的语言。对于不提供任何模式匹配的语言来说,它确实是一个阻碍。

  • 列表推导式 - 相同,可用时必不可少,没有时很痛苦。

  • 闭包

  • 内置文档支持: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.

冷血 2024-10-14 11:40:38

到目前为止,我一直发现 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 with LINQ when I had to work on a 2.0 project for a short period of time)

  • Lambda expressions

  • Built-in iterator pattern

  • Built-in observable pattern

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文