Skip to main content
Software Engineering

You are not logged in. Your edit will be placed in a queue until it is peer reviewed.

We welcome edits that make the post easier to understand and more valuable for readers. Because community members review edits, please try to make the post substantially better than how you found it, for example, by fixing grammar or adding additional resources and hyperlinks.

Required fields*

What uses does Smalltalk’s ‘become:’ have?

The become: message in Smalltalk causes one object to change into another, affecting all references to it.

What uses does this language feature have? Does it get used in real code? Is it just a curiosity? Is it considered a good/bad practice to use it?

Answer*

Draft saved
Draft discarded
Cancel
2
  • 2
    I'd be more worried about become's impact on my sanity than on my program's performance... Commented Oct 6, 2015 at 10:43
  • Hardware support could ease the performance penalty. Of all the places I've heard this, the Smalltalk community has been the most prominent. Why should we "spend" hardware improvements on enabling idealistic programming paradigms when it could instead lead to increased performance, decreased power usage, or increased capability. Commented Feb 19, 2016 at 5:32

AltStyle によって変換されたページ (->オリジナル) /