为什么 RegexTest 有一个 main 方法?
我想知道为什么 scala. util.parsing.combinator.testing.RegexTest 有一个 main 方法。
库类不是打算从程序内部调用而不是作为独立的可执行文件单独运行吗?
I wonder why scala.util.parsing.combinator.testing.RegexTest has a main method.
Aren't library classes intended to be called from within the program and not run separately as an independent executable?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
这不是唯一的一个。我特别喜欢的是 scala.swing.test.UIDemo。我真的,真的不认为它们应该与图书馆捆绑在一起,但它们确实如此。基本上,它们是您可以直接运行的示例:
That's not the only one. One I particularly like is
scala.swing.test.UIDemo
. I really, really don't think they ought to be bundled with the library, but they are. Basically, they are examples you can run directly: