๐๏ธ Introduction
This guide provides a comprehensive overview of the language's syntax, features, and runtime behavior. Whether you are a beginner looking to understand the fundamentals or an experienced developer diving into the specifics, this reference serves as your go-to resource.
๐๏ธ Program Structure
Every program must define a main function, which acts as the starting point of execution. This makes it immediately clear where the program begins, keeps the codebase more organized, and allows other readers to locate the core logic.
๐๏ธ Built-in Types
6 items
๐๏ธ Declarations
Varjus supports variable declarations using let and const. Unlike some other languages, it does not support chaining declarations with the comma operator.
๐๏ธ Control Flow
Control flow statements allow you to control the execution order of your code.
๐๏ธ Functions
Functions are used to define reusable blocks of code that can be executed when called. Functions can accept parameters, perform operations, and return values.
๐๏ธ Operators
This language supports various operators, categorized into different types based on their usage and behavior.
๐๏ธ Comments
Comments are used to add non-executable explanations or notes within your code.
๐๏ธ Exception handling
The try-catch statement allows handling user-defined exceptions.
๐๏ธ Modules
Modules allow you to structure your code into reusable components.
๐๏ธ Type Coercion
Type coercion follows a strict and predictable set of rules to ensure safe and deterministic behavior. It is designed to maintain type safety by preventing unpredictable implicit conversions. It avoids the kinds of silent errors seen in languages with aggressive coercionโfor example, JavaScript allowing "5" - 3 to produce 2. At the same time, it supports natural arithmetic operations while keeping type behavior clear and consistent.
๐๏ธ Destructuring
Destructuring lets you quickly pull values out of arrays or objects into separate variables when you create them.
๐๏ธ Code Examples
Check out the tests section from the GitHub for practical examples.