Re: [Siop-development] Send by reference or by value?
Status: Pre-Alpha
Brought to you by:
slobberchops
From: Kevin S. <wx...@qu...> - 2006-06-19 03:19:40
|
On Sat, 2006-06-17 at 17:05 -0700, Rapheal Kaplan wrote: > Question for folks... should the default mode of returning/sending values > from method calls be by reference or by value for abstract types? Speaking from a ruby standpoint, I think by-reference would be easiest and least surprising. In ruby, simple objects like integers are (conceptually) passed by reference...but they are immutable objects, so the effect is as if you had passed them by value. Speaking from an agile standpoint, I would be inclined to support only by-reference until a case came up that made it unworkable. At that point, a by_value wrapper would (hopefully) solve it. Kevin |