Silicon
  • Home
  • Documents
    • Data Types
    • Variables
    • Functions
    • Comments
    • Control Flow
    • Operators
    • Interfaces
    • Classes
    • Modules
  • Source Code
Powered by GitBook
On this page
  • Dynamic Variables
  • Constant Variables

Was this helpful?

  1. Documents

Variables

Dynamic Variables

src/main.si
fn main() {
    let integer1: i32 = 22;
    let integer2 = 202;
    
    let boolean1: bool = false;
    let boolean2 = true;
}

Constant Variables

This section is not implemented yet.

src/main.si
fn main() {
    const integer1: i32 = 22;
    const integer2 = 202;
    
    const boolean1: bool = false;
    const boolean2 = true;
}
PreviousData TypesNextFunctions

Last updated 4 years ago

Was this helpful?