4 ms·
JavaScript/TS is a functional language, too[0]. Like Lisp, it supports all programming styles. With JS you have the advantage of being built into the browser wi
by dtagames 2y ago
JavaScript/TS is a functional language, too[0]. Like Lisp, it supports all programming styles. With JS you have the advantage of being built into the browser with rich debugging tools.
[0] https://medium.com/gitconnected/functional-programming-in-typescript-18ac096bb551 https://medium.com/gitconnected/functional-programming-in-ty...
- akkad33 2y agoDoes it have default immutability, currying etc?
- dtagames 2y agoIt doesn't have any default anything. You can mark constants as immutable in TS and yes you can write currying style functions if you want that. JS supports all programming styles.
- travisgriggs 2y agoPattern matching multi functions too? Thats one of the favorite parts for me in elixir.
- akkad33 2y agoNo java script does not have currying that exists in languages like fsharp, ocaml etc