M
Marian Edu
Guest
sure thing, even with GC I still like to clean-up the mess behind The use case is just the plain builder pattern, in my particular case a http request builder like this: httpReq = HttpRequestBuilderostRequest('url'):withBasicAuth('usr', 'pass'):withBody(reqData):build(). HttpRequestBuilder have a private constructor and one instance will hold building parts during build process but once the build method is called there is no need for that builder instance so `delete this-object` seemed appropriate (although odd for some reason I can't really explain).
Continue reading...
Continue reading...