[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: bindings and assignments

> As far as I understand it, designing/implementing automatic boxing to
> allow assignment to captured bindings isn't very involved (maybe a days
> worth of design to implement in a well designed compiler) and allowing it
> in a language (designed to be compiled for high performance) would mean that
> only programs that use the feature (perform assignments to bindings in a
> closure) would pay for the extra boxing, because the boxing needs to be
> performed only when an assignment to a lexically bound variable are found.

I think this is the main argument. In fact, using the single-element
array trick, this boxing could, in fact, be performed (as needed) using
source-to-source translations, if that was indeed a design goal...


Matt Hellige                  matt@immute.net