Syntax
Seal has a beautiful syntax that is easy to read and write. This section demonstrates the syntax of Seal.
Overview
Seal uses indentation for block definitions unlike C-like languages which use { } (Curly Braces). With this approach, code looks cleaner and more natural. Unlike Python, it does not use : (Colons) at the end which I dislike a lot. Example Seal program:
define is_prime(n)
if n < 2 then return false
i = 2
while i * i <= n
if n % i == 0
return false
i += 1
return true
print(is_prime(127))
Sections
-
Maps (Hashmaps / Tables / Objects)