Jump to content

Enforced immutability: Difference between revisions

m
Line 306:
Dyalect supports creation of constants using "const" keyword:
 
<lang dyalect>constlet pi = 3.14
constlet helloWorld = "Hello, world!"</lang>
 
A constant can contain a value of any type:
 
<lang dyalect>constlet sequence = [1,2,3,4,5]</lang>
 
=={{header|E}}==
Anonymous user
Cookies help us deliver our services. By using our services, you agree to our use of cookies.