Kenneth A. Kousen wrote:Lambdas (and method references) come up when you're writing Stream pipeline code..
Ah. I tend to write device driver code, Linux kernel internals, and lately have been parsing text log files. Only the log file parsing has been in Java, everything else is C.
Actually, it sounds a lot like state machine code I've written, where everything is a pointer to a function (written in C). Done that twice, both were, um, interesting.
As I said in my original post, I suspect when I need it I'll know it, but until then it will be a "who the hell needs this" kinds thing.
CSB time
Found myself troubleshooting some battery charging code. It was implemented as a state machine. The problem turned out to be hardware.
Several months later I got loaned to another group (I was a generic troubleshooter at the time), mentioned to the woman I was working with that that battery code was some of the sweetest code I'd ever run across. She offered to introduce me to the guy that wrote it. I was, I dunno, 45-50 at the time. He was a 20 something H1-B. I was embarrassed at the way he took my compliment, I had never before, nor ever again, been treated as a programming god.
/ CSB