Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
它从哪里来的?
他们为什么不使用->或其他一些符号?
->
那么当他们使用时->,你会问为什么 Rails(实际上不是 Rails bu Ruby)使用->,为什么不使用=>?
=>
顺便说一句,Ruby 1.9 中新的 lambda 语法使用->.
更快的口译。=> 永远不会在其他任何地方使用,-> 可能会,这样可以在解析脚本时更快地决定要做什么。