F-Script 与 Smalltalk 兼容吗?
F-Script 语法看起来像 Smalltalk。它与任何 Smalltalk 标准兼容吗?
F-Script syntax look like Smalltalk. Is it compatible with any of Smalltalk standard?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
F-Script 与 Smalltalk相似,但两者并没有真正意义上的兼容。
copyFrom:
变成 Cocoa 的substringFromIndex:
。String
及其朋友被NSString
替换。Behavior
这样的主要类。这就是我的想法。
我知道 F-Script 和 Smalltalk 看起来很相似,但是,借用萧伯纳的话来说,它们是两种由共同语法划分的语言。一旦你开始在两者中工作一段时间,你就会立即体验到它们之间不可调和的差异的深度。
F-Script is similar to Smalltalk, but the two aren't meaningfully compatible.
copyFrom:
becomes Cocoa'ssubstringFromIndex:
.String
and its friends are replaced withNSString
.Behavior
are totally missing from F-Script.And that's just off the top of my head.
I know that F-Script and Smalltalk look simliar, but, to co-opt George Bernard Shaw, they are two languages divided by a common syntax. Once you begin to work in both for any length of time, you'll immediately experience the depth of their irreconcilable differences.