Breaking News: Grepper is joining You.com. Read the official announcement!
Check it out

Scala’s Approach#

Sumit Rawal answered on May 23, 2023 Popularity 1/10 Helpfulness 1/10

Contents


More Related Answers

  • scala operator
  • scala operator
  • scala operator
  • learn Scala
  • how loop in scala
  • how loop in scala
  • new scala project
  • how loop in scala
  • Scala methods
  • Who's Using Scala?
  • What is scalability in a Software program?
  • how loop in scala
  • how loop in scala
  • how loop in scala
  • Recursive Approach scala
  • What is Scala
  • how loop in scala
  • for scala example
  • So what is Scala programming language?
  • scala tutorial
  • how loop in scala
  • how loop in scala
  • how loop in scala
  • how loop in scala
  • how loop in scala
  • how loop in scala
  • how loop in scala
  • how loop in scala
  • how loop in scala
  • how loop in scala

  • Scala’s Approach#

    0

    Scala doesn’t have an extensive list of control structures with only six control structures in total. The reason for this is that Scala allows control abstraction; the ability to create your own control structures. While control abstraction is out of the scope of this course, it is important to mention here as it is a feature unique to Scala.

    Scala’s control structures are if, while, for, try, match, and function calls.

    In Scala, control structures return values just like functions. With this, Scala brings a functional approach to an imperative paradigm. The ability of a control structure to return a value reduces the need to create temporary variables for holding results resulting in cleaner and more concise code.

    In the next lesson, we will cover the first control structure: if.

    Popularity 1/10 Helpfulness 1/10 Language scala
    Source: Grepper
    Tags: scala
    Link to this answer
    Share Copy Link
    Contributed on May 23 2023
    Sumit Rawal
    0 Answers  Avg Quality 2/10


    X

    Continue with Google

    By continuing, I agree that I have read and agree to Greppers's Terms of Service and Privacy Policy.
    X
    Grepper Account Login Required

    Oops, You will need to install Grepper and log-in to perform this action.