Basics

Math

Just like many other languages you have worked with in the past, Halla programs are written using expressions. All expressions in Halla have a return type. Let's start out with some basic mathematical expressions.

-- The following number will be an Int
> 42
42

-- Floats are similarly declared
> 12.3
12.3

-- Here's an example of addition
> 1300 + 37
1337

Strings

Halla uses Strings like the majority of other languages you may have worked with in the past.

-- Strings are declared with double quotes
> "hello"
"hello"

-- Strings can be concatonated together with the (+) operator
> "hello" ++ "world"
"helloworld"

-- You can chain multiple operations together as well
> "hello" ++ " " ++ "world"
"hello world"