Home » Scala language

What do all Scala's symbolic operators mean?

Scala symbolic operators: In Scala, there are a lot of symbolic operators that are defined for the proper functioning of the system. In this tutorial, we will see the basics of symbolic operators in Scala.
Submitted by Shivang Yadav, on August 07, 2019

Scala's symbolic operators

The symbolic operators in Scala are symbols that have a specific task that they perform when called in a Scala program. Scala library defines a lot of symbols that can be used while programming in Scala.

Here is a list of all valid Scala symbolic operators, you can go to our tutorial on Scala operators to get a deep knowledge of operators used in Scala programming language.

There are four types of symbols are used in Scala:

1) Keywords/ reserved symbols

There are symbols in Scala programming language that have a specific utilization and are reserved for that.

  • Keywords: '<-' , '=>'
  • Reserved symbols: '(' , ')' , '[' , ']', '{', '}', '.', '// /* */' , '#' , ':' , '<: >: <% ' , '' , ' '' "" ', ' ' ', '@' , ',', ';', '_*', '_'

2) Automatically import methods

The default imports are,

  • import _root._java.lang._
  • import _root._scala._
  • import _root._scala._Predef._
  • ArrowAssoc : ->

3) Common methods

These are those symbols that are methods to some classes,

'++', '.++', '.::', '+:',

4) Syntactic sugars/ compositions

These are those symbols that may hide a method,

'=', '(_+_)'







Comments and Discussions

Ad: Are you a blogger? Join our Blogging forum.




Languages: » C » C++ » C++ STL » Java » Data Structure » C#.Net » Android » Kotlin » SQL
Web Technologies: » PHP » Python » JavaScript » CSS » Ajax » Node.js » Web programming/HTML
Solved programs: » C » C++ » DS » Java » C#
Aptitude que. & ans.: » C » C++ » Java » DBMS
Interview que. & ans.: » C » Embedded C » Java » SEO » HR
CS Subjects: » CS Basics » O.S. » Networks » DBMS » Embedded Systems » Cloud Computing
» Machine learning » CS Organizations » Linux » DOS
More: » Articles » Puzzles » News/Updates


© https://www.includehelp.com some rights reserved.