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

1. Yes, I'm sure. See my reply below.

2. Excessive generation of garbage is a problem for functional languages in general; that is nothing specific to immutable arrays. Good compilers analyze object lifetimes and perform updates in-place when possible (e.g. Mercury does this). Even if your compiler doesn't do this, the garbage generated is constant or logarithmic with respect to the size of the array for most common immutable-array implementations.

So yes, I'm sure.



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

Search: