evaluablestrings

Description

Allows you to put code in Strings that can be evaluated. Like inRuby.It uses Streams so it's more efficient than String concatentation.Examples:'{a} + {b} = {a + b}' evaluate.'CHF: {b printShowingDecimalPlaces: 2}' evaluate.'Seconds/day: #{24*60*60}' evaluate.

Details

Source
SqueakSource

Categories

Education / Howto System / OS
← Back to results