Rebol Tutorial

Rebol Programming - Learn Rebol with Real-World Examples

Tag archives for Immutability

21 Jul by admin in All, Concept, Expert, Scala, Syntax

An equivalent of Scala Var Keyword in Rebol

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»
18 Jul by admin in All, Concept, Scala, Syntax

An equivalent of Scala Val keyword in Rebol

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»