Tag archives for Immutability
An equivalent of Scala Var Keyword in Rebol
This is even easier than for the val keyword (see ""):
var: :set
That's all Folks :) Test for the absolute skeptics:
>> var 'a 1
== 1
>> a
== 1
>> a: 2
== 2
>>
Of course in Rebol this syntax is completely useless as you could just write:
a: 1
But for our Scala learning purpose this may ...more»
An equivalent of Scala Val keyword in Rebol
Scala emphasizes scalability and this scalability claim is based on its immutable-state-by-default stance. In our first lesson "") we learnt that scala can declare a variable with either the var or the val keyword. Rebol can also protect a variable (the function name is protect) but it doesn't do it ...more»



1 Comment
Tags: Functional Programming, Immutability, Scala