Mode:
Duration:
1
Coding works best on desktop or with an external keyboard.
Coding works best on desktop or with an external keyboard.
Demonstrates a simple counter with theme toggling using REBOL/Red variables and functions.
count: 0
isDark: false
updateUI: func [] [
print rejoin ["Counter: " count]
print rejoin ["Theme: " either isDark ["Dark"] ["Light"]]
]
increment: func [] [
count: count + 1
updateUI/()
]
decrement: func [] [
count: count - 1
updateUI/()
]
reset: func [] [
count: 0
updateUI/()
]
toggleTheme: func [] [
isDark: not isDark
updateUI/()
]
; Simulate actions
updateUI/()
increment/()
increment/()
toggleTheme/()
decrement/()
reset/()Rebol and its modern descendant Red are high-level, cross-platform programming languages designed for simplicity, domain-specific languages, and full-stack development. Rebol emphasizes compact syntax and data exchange, while Red adds native compilation, GUI support, and system-level capabilities.
Origin & Creator
Rebol was created by Carl Sassenrath in 1997 to enable efficient data exchange and scripting. Red was initiated in 2011 by Nenad Rakocevic as a modern, native successor to Rebol.
Industrial Note
Rebol/Red excels in small-footprint tools, cross-platform GUI apps, DSL creation, and scripting tasks that benefit from concise syntax and runtime flexibility.