Prorogued Proramming - somthing to consider for the D future?
Nick Sabalausky
SeeWebsiteToContactMe at semitwist.com
Sat Sep 21 20:22:23 PDT 2013
On Sat, 14 Sep 2013 21:25:58 +0200
"Peter Alexander" <peter.alexander.au at gmail.com> wrote:
> Here's a super quick summary for those without time to watch:
>
> He proposed a language keyword, 'prorogue' used like so:
>
> int foo = prorogue bar(x);
>
> The keyword indicates that, instead of calling 'bar', the code
> should ask the user for the return value, which is then memoized
> with the value of x, and is saved across executions. bar need not
> be defined. You can also do things like 'return prorogue;' to
> request a value to return.
>
> The reported uses of this are:
> - Top-down development: prorogue functions to mock them.
> - Debugging: mark a call as prorogue to provide a value to repro
> a failure case.
> - Crowdsourcing: if you memoize across the internet then all
> users collaborate to fill in gaps.
>
I think that's a pretty cool idea.
More information about the Digitalmars-d
mailing list