Strong typing is very important in functional programming
Most scripting like Ruby, Python, etc. are dynamically typed, which is supposed to be one of their advantages.
Static typing makes programming much safer.
But sometimes types declarations become a burden.
Scala’s type inferencing mechanism minimizes the number of type declarations required.
It’s not uncommon for user code to have no explicit types.
Data Types Byte : 8 bit signed value. Range from -128 to 127
Short : 16 bit signed value. Range -32768 to 32767 Int : 32 bit signed value. Range - to
Long : 64 bit signed value. -9223372036854775808 to 9223372036854775807
Float : 32 bit IEEE 754 single-precision float
Double : 64 bit IEEE 754 double-precision float Char : 16 bit signed Unicode character. Range from U+0000 to U+FFFF
String : A sequence of Chars
Boolean : Either the literal true or the literal false Unit: Corresponds to no value : void
Null: null or empty reference
Nothing : The subtype of every other type; includes no values Any: The supertype of any type; any object is of type
Any : Java's Object class
AnyRef: The supertype of any reference type
Top Online Courses From ProgrammingKnowledge
Python Programming Course Programming Course Shell Scripting Course Command Line Tutorials Programming Course Programming Course Programming Course Development Course Programming Course Programming Course Programming Course Course For Developers and DevOps Programming Tutorial Course Responsive Web Design Tutorial Tutorial Course C++ GUI Tutorial For Beginners Online Courses to learn
Get 2 FREE Months of Unlimited Classes from skillshare - https://skillshare.eqcm.net/r1KEj
Data Science - | Learning - |
Artificial Intelligence - | Stack E-Degree Program - | E-degree - | Analytics with R - | Certification Training - | in Java - | Learning With TensorFlow - | 8 - Complete Essential Guide - Android Development Masterclass - iOS Programming Building Advance Projects - Follow
My Website - http://www.codebind.com
DISCLAIMER: This video and description contains affiliate links, which means that if you click on one of the product links, I’ll receive a small commission. This help support the channel and allows us to continue to make videos like this. Thank you for the support!