-
Notifications
You must be signed in to change notification settings - Fork 6
Caffeine Truth
Shane Brinkman-Davis Delamore edited this page Mar 29, 2018
·
2 revisions
Related: Semantic Changes
In CaffeineScript, truth is simple and useful:
- FALSE:
false,undefinedandnull - TRUE: everything else
If you are familiar with the Ruby programming language, CaffeineTruth is basically RubyTruth.
# In all the following examples,
# a is tested with: Caf.true(a)
if a...
unless a...
while a...
until a...
a && ...
a || ...
!a- Home
- Get Started
- Benefits
- Highlights
- Productivity by Design
- CaffeineScript Design
- What is CaffeineScript Good For?
- Get the most out of JavaScript
- Language Comparison
- CHANGELOG
- Blocks Instead of Brackets
- Binary Line-Starts
- Everything Returns a Value
- Streamlined Modules
- Scopes and Variables
- Optional Commas
- Semantics
- Ambiguities