문제

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?

도움이 되었습니까?

해결책

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:

scala scala.swing.test.UIDemo
라이센스 : CC-BY-SA ~와 함께 속성
제휴하지 않습니다 StackOverflow
scroll top