RE: Re: [ntdev] kcalloc equivalent

Nothing beats the carnage caused by C# devs and their love of the singleton when unleashed on C++.

mm

From: xxxxx@lists.osr.com [mailto:xxxxx@lists.osr.com] On Behalf Of Marion Bond
Sent: Monday, April 20, 2015 3:47 PM
To: Windows System Software Devs Interest List
Subject: [ntdev] Re: [ntdev] kcalloc equivalent

Please don’t get me started on C# lambda expressions. As a supervisor of code reviewers, these seem to cause only slightly less utter slack jawed confusion than overloaded operators. You wouldn’t think so as the concept is not hard, but this was hardly the first time I have been surprised

Sent from Surface Pro

From: Tim Roberts mailto:xxxxx
Sent: ‎Monday‎, ‎April‎ ‎20‎, ‎2015 ‎6‎:‎42‎ ‎PM
To: Windows System Software Devs Interest List mailto:xxxxx

xxxxx@osr.com wrote:
> Of course, much stuff in std:: suffers from the usual “It’s sooooo ugly and hard to parse visually” disease that defines C++. I mean, SERIOUSLY… WTF is THIS:
>
> std::future f1 = std::async(std::launch::async, {
> return fib(20);
> });
>
> (and please, nobody bother to explain it to me. I know what it does. I just can’t believe anybody could actually invent anything so fucking ridiculously ugly. Note particularly the “{” sequence.).

I have a certain amount of sympathy. They had to introduce an entirely
new syntax element here. It would have been nice to introduce a new
keyword (lambda?), but that would break all kinds of existing code. The
C# lambda sequence is only slightly better, but it doesn’t support all
of the closure cases.


Tim Roberts, xxxxx@probo.com
Providenza & Boekelheide, Inc.


NTDEV is sponsored by OSR

Visit the list at: http://www.osronline.com/showlists.cfm?list=ntdev

OSR is HIRING!! See http://www.osr.com/careers

For our schedule of WDF, WDM, debugging and other seminars visit:
http://www.osr.com/seminars

To unsubscribe, visit the List Server section of OSR Online at http://www.osronline.com/page.cfm?name=ListServer


NTDEV is sponsored by OSR

Visit the list at: http://www.osronline.com/showlists.cfm?list=ntdev

OSR is HIRING!! See http://www.osr.com/careers

For our schedule of WDF, WDM, debugging and other seminars visit:
http://www.osr.com/seminars

To unsubscribe, visit the List Server section of OSR Online at http://www.osronline.com/page.cfm?name=ListServer</mailto:xxxxx></mailto:xxxxx>