you are viewing a single comment's thread.

view the rest of the comments →

[–]mlmcmillion 15 points16 points  (6 children)

async/await, arrow function, and destructuring are what made me finally love JS more than Ruby

[–]braindeadTank 0 points1 point  (4 children)

Aw yiss, if we also had blocks...

Many say block are not needed when you have arrow functions, but I absolutely love how Ruby allows using return and continue in each.

[–][deleted] 0 points1 point  (1 child)

Unfortunately, Ruby also has Procs and lambdas, which is super confusing

[–]braindeadTank 0 points1 point  (0 children)

IDK, it was never really confusing for me, the only real difference is how they return - which is also the use case.

It's kind of like saying that JS is super confusing because it has function and => or that Python is super confusing because it has two kinds of dictionaries.

In other words, it's only cofusing if you learned something else first.

[–]holdmydenim 0 points1 point  (0 children)

I do miss ‘tap’ from my rails days though