DEV Community

Discussion on: Announcing WheelJS - The Future of JavaScript

Collapse
 
offirmo profile image
Offirmo

??? shouldn't the result also be a function?

Should be: console.log(result())

Also it's missing monads, not functional enough!

How about:
add(number1.or(zero), number2.or(zero)).or(forty_two);

I'd also suggest a standard library for ease of use:

const zero = () => 0
...
const forty_two = () => 42
Enter fullscreen mode Exit fullscreen mode
Collapse
 
bytebodger profile image
Adam Nathaniel Davis

Congratulations! You have just been added to the core team!

Collapse
 
offirmo profile image
Offirmo

Yeah!!! My dream came true 🤣🤣🤣