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

The subtle difference between the two ways of communicating the design: There are cases where the reference does not escape, but the compiler doesn't know how to prove that. So saying "if it escapes it's boxed" is subtly wrong.

The default is heap, and only when the compiler can be sure it's safe, things go on the stack.



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

Search: