Arctic is an imperative statically typed interpreted programming language written in Ruby by AndrewNation. It was also originally planned to be a reimplementation of Titanium, another programming language created by the same creator of Arctic, but it then evolved independently, and he added things he regretted not having added to Titanium, such as a type system. Arctic is currently in its very early development stages and its beta version is planned to be released around January 2023. Its syntax was influenced by Ruby and Python with some subtle influences from C++, Pascal, and Java. It’s also important to note that the semicolon at the end of statements is optional in Arctic, just like in JavaScript.

arctic.png

Paradigm Imperative
Created by AndrewNation
File extension .ice
Typing discipline static
Influenced by C, C++, Java, Pascal, Ruby Lua, Python, Titanium
Written in Ruby
Official Interpreter Polar

🔢 VARIABLES AND CONSTANTS

To declare a variable in Arctic, you must specify its type, give it a name (only uppercase and lowercase letters and the underline symbol are allowed), and then assign it a value compatible with its type. If the type of the value assign to the variable and the type defined in its declaration don’t match, Arctic will immediately throw a “type mismatch” error. Example: string message = "Hello world!"

TO BE ADDED IN THE NEXT VERSIONS:

You can always change the value of a variable later with the <= operator, but the value should have the same type as when you declared the variable.

example: {
	string username = "Joseph";
	username <= "Johnathan";
}

If you tried to assign a number to that variable, for example, you’d get an error:

Untitled

To declare a constant, just declare it as you would declare any variable, but don’t forget to put the ! symbol at the end of the identifier, because it literally means that it is immutable. Examples: