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

Ruby unfortunately has non-strict destructuring, but it also has LHS splatting:

a, *, c = list

And people often use _ as a placeholder when not using splatting:

a, _, _, c, d = list



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

Search: