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

  • how to set up a scala project
  • scala extends app
  • scala operator
  • scala operator
  • scala operator
  • learn Scala
  • how loop in scala
  • how loop in scala
  • how loop in scala
  • Scala methods
  • how loop in scala
  • Who's Using Scala?
  • What is scalability in a Software program?
  • how loop in scala
  • how loop in scala
  • scala keywords
  • Recursive Approach scala
  • for scala example
  • What is Scala
  • So what is Scala programming language?
  • how loop in scala
  • 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

  • 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.