shell - Is there a Scala version of .irbrc or another way to define some default libraries for REPL use? -


I have written a small library, which uses implicits to add functionality, which only uses REPL in Scal Time is necessary. There is such a library of Ruby - for things like beautiful printing, firing the text editor (such as the interactive_editor mani who invites Vim from IRB - see), debuggers and like I'm trying to write the library, some methods Adds java.lang.Class and java.lang.reels to using the 'BrokerMy Library' uncompression conversion process to get you to know and get the documentation In the beginning, with Google, later possibly the Javadak / Scaloid viewer, and maybe the stack overflow API!). It's an itchy library: I spent so much time copying and pasting classmates in Google that I thought I could automate the process.

This is a functionality that developers use to use only in REPL - they really should not add it to projects (partly because it can not be anything that their fellow developers want, But also because you are developing some exploratory, it can only happen with a Scala, which is not being implemented by any IDE or build tool).

In my case, I want to include some classes and want to set up some underlying - include one at the CLSSPHH and import it, basically

Ruby In, this is something you can add in your .irbrc file. Other REELs have similar options for such options and importing libraries.

Is there a similar file or method to do for Scala REPL?

Not sure if you want this, but if you want to have your SCALA_HOME \ / Code> Insert a jar in the directory then this jar will be available for import into REPL (using the import keyword).

EDIT: Any jars referenced in the most convenient option as CLASSPATH environment variable CLASSPATH variable are also available for import in REPL.


Comments

Popular posts from this blog

windows - Heroku throws SQLITE3 Read only exception -

lex - Building a lexical Analyzer in Java -

python - rename keys in a dictionary -