Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

Well you can't really. If you want to write frontend apps, for example, you have to use JS. You could technically use some FPLang-to-JS compiler, but those suck more often than not.

Also, I don't see how "let's not make a thing better just because it was not meant to work this way" is an argument.

I'm sure there is a fallacy name for this, but consider some other examples: "You could always use fridges for cooling and let cars be" or "You could always use computers for browsing the internet and leave phones be".



  You could technically use some FPLang-to-JS compiler, 
  but those suck more often than not.
Some citation needed on that one. I've got a whole host of contradictory examples. Do you mean to say that you personally have not fancied any of them so far? If someone has done some deeper digging into the state of compiled vs. handwritten JS I'd be delighted to read about it though.


I'm using on my day to day ClojureScript and have, till now, 0 technical issue. Is this the perfect platform ? Hell no, it can be annoying to set, and interop can be annoying (mostly due to the fact that the world of side effect is still there, lurking and come at odds to my immutable language). The upside is that it works. For me it's a relief to use a FP compare to OO, some would prefer a logic (prolog) approach, or else - and again, we can, right now and it's no harder than using grunt, bower or any of the other tool that have appeared recently.


> You could technically use some FPLang-to-JS compiler, but those suck more often than not.

Features like the function bind syntax are only possible with Babel or another transpiler. It will likely be years before you can use them practically without a transpiler in the browser.

A lot of the new syntax/macros/APIs/etc should just be built as modules or Babel plugins rather than core language features. Just because [Syntax X] improves a couple of code snippets doesn't mean it needs to be shipped with the next version of JavaScript.


> A lot of the new syntax/macros/APIs/etc should just be built as modules or Babel plugins rather than core language features.

I like this idea a lot. Mostly because it would keep JavaScript from becoming the huge syntactical and idiomatic minefield that modern C++ is.




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: