A Scala REPL session stands for read, eval, print, loop and it is installed automatically with your Scala install. This session is launched from a command prompt and allows the user to type code snippets in the session and get instant feedback and results.
- [Instructor] Another interactive tool that we can use…to test our Scala code is called a REPL session, R-E-P-L,…or Read Evaluate Print Loop.…Let's go ahead and launch…a terminal window or a command window.…From the Windows environment, I'm going to click…on the Window icon, and I'm going to type CMD,…and it will launch a command prompt.…When you download Scala,…it automatically downloads a Scala REPL session.…In order to get into the REPL session,…we type the word scala.…
Let's go ahead and do that now.…You can see, it says Welcome to Scala.…Type in expressions for evaluation, or try :help.…So let's start by typing in :help to see…what all the commands are that I can use.…You can see we can use :edit, :help, :history.…We can import libraries.…We can use javap.…We can use load, which we'll take a look at…and how to load a file and then execute it.…Those are some of the different commands we can execute.…We can also just type in regular commands.…
What's really nice is the interactive session can be used…to not only load script files but also execute code…
Join Peggy Fisher as she helps get you started with Scala, so you can leverage the unique capabilities it offers. First, learn the basics of type inference, variables, loops, functions, and operators. Then, find out how to read files using a console, perform pattern matching, handle exceptions, and more. Finally, learn how to use classes, fields, methods, and objects.
- Integrating with IDEs
- Scala worksheets
- Scala repl sessions
- Type inference
- Creating variables
- Working with loops
- Higher-order functions
- Scala operators
- Working with decision statements
- Handling exceptions using try or catch
- Working with tuples and arrays
- Classes, fields, and methods
Skill Level Intermediate
Java Platforms Compared: SE vs EE vs MEwith Peggy Fisher25m 38s Intermediate
1. Getting Started with Scala
2. Scala Basics
3. More Scala Basics
4. Objects with Scala
- Mark as unwatched
- Mark all as unwatched
Are you sure you want to mark all the videos in this course as unwatched?
This will not affect your course history, your reports, or your certificates of completion for this course.Cancel
Take notes with your new membership!
Type in the entry box, then click Enter to save your note.
1:30Press on any video thumbnail to jump immediately to the timecode shown.
Notes are saved with you account but can also be exported as plain text, MS Word, PDF, Google Doc, or Evernote.