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?
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
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: