Push the limits of Arrow Function
I got the feeling that infinite possibilities of Arrow Functions when I play with it like:
// factorial
(f => n => f(f, n))((f, n) => n ? n * f(f, n - 1) : 1)(5) // 120
So Arrows was born from the belief that can do anything with only Arrow Functions.
Only use Arrow Functions
- Avoid using APIs of JavaScript whenever possible
- e.g.
''.length
,[].push()
- e.g.
- Avoid using any of statements
- e.g.
if..else
,function fn() {}
- e.g.
- Use Arrow Functions as much as you want. No one stops you
Arrows code is basic JavaScript, but has its own module system to prevent code duplication. Currently it is only assumed to run on Node.js.
$ git clone https://github.com/yuta0801/arrows.git
$ cd arrows
$ node -r ./arrows examples/hello.js