Join GitHub today
GitHub is home to over 28 million developers working together to host and review code, manage projects, and build software together.Sign up
Why CaffeineScript over CoffeeScript?
Below is the short list of why you should use CaffeineScript over CoffeeScript. For a more in-depth discussion: Coming from CoffeeScript.
- CaffeineScript is founded on the idea that it is possible to do Indent-Block parsing consistently and universally throughout the language. Complete Indent-Block Parsing enables:
- Streamlined Modules reduce module-related code by over 90%. It completely changes how modules are used, unleashing their true potential for code organization and refactorability.
- Improved Refactorability - increased use of blocks, decreased syntax and refactor/edit-friendly constructs such as smart import, smart require and smart this-binding.
- Improved Literals
- Improved Comprehensions and Iteration
objectreturns an object instead of an array
array value from [1,2,3] with value * 2 # returns array: [2,4,6]
object value from a:1 b:2 c:3 with value * 2 # returns object: a:2 b:4 c:6
findreturns the first match instead of all matches
find user from users when user.id < 10
eachreturns the from-object/array like Ruby language's .each
fromvalue can be an array OR an object, will be detected dynamically and iterated over correctly. No more subtle