R
Roedy Green
I had an idea for a grammatical construct I will call pseudostrings.
They behave just like Strings, except when referenced, they invoke
some user code to produce the String.
You could initialised arrays with them, mixed in with regular strings,
ditto put them in collections.
You might use them:
1. to provide translations to the current language.
2. to automatically look something up in a database.
3. to automatically get information from a website.
4. to customize an app that did not have provision for customising.
You feed it pseudostrings in place of Strings.
5. to get the value from a Property.
How close could you get with Java?
--
Roedy Green Canadian Mind Products
http://mindprod.com
We are almost certainly going to miss our [global warming] deadline.
We cannot get the 10 lost years back, and by the time a new global agreement to
replace the Kyoto accord is negotiated and put into effect, there will probably
not be enough time left to stop the warming short of the point where we must not
go. ~ Gwynne Dyer
They behave just like Strings, except when referenced, they invoke
some user code to produce the String.
You could initialised arrays with them, mixed in with regular strings,
ditto put them in collections.
You might use them:
1. to provide translations to the current language.
2. to automatically look something up in a database.
3. to automatically get information from a website.
4. to customize an app that did not have provision for customising.
You feed it pseudostrings in place of Strings.
5. to get the value from a Property.
How close could you get with Java?
--
Roedy Green Canadian Mind Products
http://mindprod.com
We are almost certainly going to miss our [global warming] deadline.
We cannot get the 10 lost years back, and by the time a new global agreement to
replace the Kyoto accord is negotiated and put into effect, there will probably
not be enough time left to stop the warming short of the point where we must not
go. ~ Gwynne Dyer