Closed back2dos closed 6 years ago
Mercedesi?
These are the 3 scenarios I've been working on. Every scenario works (tested) with or without argument. Let me know if something's missing.
@context
{
@public
gateway = service.getGatewayURL( url, page );
@public
service = new hex.mock.MockService();
url = "http://localhost/amfphp/";
page = "gateway.php";
}
@context
{
@public
cloned = closure( service );
service = new hex.mock.MockService();
closure = hex.mock.MockService.clone.bind( _, gateway );
gateway = "http://localhost/amfphp/gateway.php";
}
@context
{
@public
gateway = closure( url );
@public
service = new hex.mock.MockService();
url = "http://localhost/amfphp/";
page = "gateway.php";
closure = service.getGatewayURL.bind( _, page );
}
I would like support for one of these two:
The main point is to not have to refer to the same values again and again, e.g. if you want to create 1000 Mercedeseseseses (what's the plural here?) then it makes sense to preconfigure some kind of factory (instance or function) in flow. Personally I would prefer the former.