您希望在 Ruby 语言中改进哪些方面? [英] What are the things you would like improved in the Ruby language?

查看:33
本文介绍了您希望在 Ruby 语言中改进哪些方面?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

您希望 Ruby(以及更普遍的 Ruby 社区)改进哪些方面?

What are the things you wish Ruby (and more generally the Ruby community) would improve?

我在某处读到 Ruby 是Smalltalk 和 LISP,Perl 小姐担任保姆.

I read somewhere that Ruby is the love-child of Smalltalk and LISP, with Miss Perl as the Nanny.

我非常尊重 Ruby 的父母,但我不确定我是否喜欢 Perl 小姐对孩子的影响.具体来说,我不喜欢预定义的变量:我需要一个 备忘单 才能知道他们的意思.你可以说不要使用它们".嗯,我不......但其他人会.当我在网上下载插件时,如果我需要去接触源代码,我别无选择,只能获取我的备忘单.我只是希望他们能从语言本身中删除这些内容.

I have a lot of respect for Ruby's parents, but I'm not sure I like the influence Miss Perl had on the child. Specifically, I don't like the predefined variables: I need a cheat sheet to know what they mean. You could say "just don't use them". Well, I don't... but other people do. And when I download a plugin on the Web, I have no choice but to fetch my cheat-sheet if I ever need to go and touch the source code. I just wish they would remove those from the language itself.

另外,我认为 Ruby 是一个移动目标太多了.我的代码在每次新的 Ruby 升级时都会中断,即使在次要版本上也是如此.Ruby on Rails 和我使用过的大多数 Rails 插件也是如此:它们一直在变化,似乎没有人关心这些变化是否会破坏一切.恕我直言,虽然我喜欢 Ruby 中的很多东西,但稳定性的缺乏几乎是一个障碍.

Also, I think that Ruby is too much of a moving target. My code breaks on every new Ruby upgrade, even on minor releases. This is true also of Ruby on Rails and most Rails plugins I have worked with: they just change all the time, and nobody seems to care whether the changes break everything or not. IMHO, although I love a lot of things in Ruby, this lack of stability is almost a show-stopper.

推荐答案

我希望人们在发布新语言(或库或框架)版本时将次要版本之间的向后兼容性视为牢不可破的规则.

I wish people would consider backward compatibility between minor releases as an unbreakable rule when releasing a new language (or library or framework) version.

这篇关于您希望在 Ruby 语言中改进哪些方面?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆