That makes sense - they were both inspired by Scheme (R is in many ways just a Lisp that uses M-expressions), but evolved to deal with immediate concerns that, in retrospect, have created difficulties as the years have gone by. It makes R and JavaScript great and frustrating at the same time.