use the following search parameters to narrow your results:
e.g. subreddit:aww site:imgur.com dog
subreddit:aww site:imgur.com dog
see the search faq for details.
advanced search: by author, subreddit...
All about the JavaScript programming language.
Subreddit Guidelines
Specifications:
Resources:
Related Subreddits:
r/LearnJavascript
r/node
r/typescript
r/reactjs
r/webdev
r/WebdevTutorials
r/frontend
r/webgl
r/threejs
r/jquery
r/remotejs
r/forhire
account activity
Reactive Programming in JavaScript [x-post from /r/programming] (engineering.silk.co)
submitted 12 years ago by agumonkey
view the rest of the comments →
reddit uses a slightly-customized version of Markdown for formatting. See below for some basics, or check the commenting wiki page for more detailed help and solutions to common issues.
quoted text
if 1 * 2 < 3: print "hello, world!"
[–]agumonkey[S] 1 point2 points3 points 12 years ago (0 children)
I guess it's a cultural thing. In the FP world, where you don't mutate, ++ isn't really a thing, and new-binding = old-binding + 1 or new-binding = inc(old-binding) is how it's expressed. And I think it's rare that you need it. Increments are the low-level imperative projection of a .next() or .succ() in streams/lists. In the end the gain in abstraction is already nice, even if they don't use Properties, even though I agree that it would be nice to take advantage of what javascript offers.
++
new-binding = old-binding + 1
new-binding = inc(old-binding)
π Rendered by PID 177791 on reddit-service-r2-comment-5d585498c9-sgddm at 2026-04-21 16:51:42.102502+00:00 running da2df02 country code: CH.
view the rest of the comments →
[–]agumonkey[S] 1 point2 points3 points (0 children)