Hmm... I have serious doubt the anonymous methods (actually referenced objects as previously discussed) will be discouraged. If anything they are more and more used across the majority of the languages, as they have huge advantages. As discussed a single anonymous method can, and usually does replace a whole class declaration and implementation, so the chance of them being discouraged is very slim. We have converted the majority of our code to use them in the last 2 years, and that reduced the code to 1/4 of the original size. All new code we write in my company is 100% anonymous methods centric. So far this has worked well for us, but sure the future will show who is right on this one ;-) .
With best regards, Boian Mitov ------------------------------------------------------- Mitov Software www.mitov.com ------------------------------------------------------- From: Dmitry Boyarintsev Sent: Tuesday, September 23, 2014 7:39 PM To: FPC developers' list Subject: Re: [fpc-devel] Suggestion: reference counted objects That's exactly what I wanted to confirm - no name - for an anonymous function. I'm sure eventually the development society, will discourage the use of anonymous functions (just like unnamed constants are considered to be a bad pattern). Thus the only thing that would remain welcomed are closures - copying the execution context for further invoke of a function. thanks, Dmitry
_______________________________________________ fpc-devel maillist - [email protected] http://lists.freepascal.org/cgi-bin/mailman/listinfo/fpc-devel
