~repos /plum
git clone https://pyrossh.dev/repos/plum.git
A statically typed, imperative programming language inspired by rust, python
website/src/content/docs/statements/constants.md
---title: Constantsdescription: These are basic types---
Constants can be declared at the top level of a program. They cannot be reassigned.
- Primitive values like`int, float, str` are directly replaced in code.- Reference values like `list, map, records` are initialized at program start and passed by reference when used. Their data can be modified.
```rbconst START_YEAR = 2101const PI = 3.14159const NAME = "pacos"const DEBUG_ENABLED = trueconst COUNT = count(10)const COUNTRIES_LIST = List.of("US", "INDIA", "CANADA")const COUNTRY_CODES = Map.of( "in" => "INDIA", "us" => "United States", "ca" => "Canada")
fn count(n: int): int = n * 1```