The world's first Lambda Functions in C?
Vložit
- čas přidán 29. 08. 2024
- Lambda functions (or "arrow functions") are one-line-functions that you put in the middle of your code. They are nameless and they can make your programs very elegant.
They originate from functional languages like Haskell, but most big languages have adopted them lately, in some form or another. Not C, though. But in this episode I try to leverage some new features of the C language along with some macro magic, to create my own implementation of Lambda functions.
As far as I know, noone else has been able to do this in C, at least not in any real sense.
This is super neat man, first in the world of something that is now very modern programming, would love to see generics too!
Hi Discontinuity, thank you, generics is actually quite possible using some preprocessor macro magic. I plan on doing an episode on that subject later.
JB
I really appreciate your efforts for those valuable videos
Thanks El, I am happy for your support. JB
Happy to see you again.
I'm happy to see you too, Adit, and I'm happy to be back! JB
Sorry to hear your breakup. Hope you get well soon. 🙏🙏🙏
Thank you Minma, that's very considerate. Im more or less through it already, JB
tnx🎉
❤️
Thank you Oceano, a heart from you is of great value to me. Take care, JB
❤❤❤😊
sry for ur breakup. hope ur ok
void* that's life, you know, I'll carry on. Thank you, though. That is very considerate. Take care. JB
@void_ptr32 hope to see you Friday at the live stream czcams.com/users/liveFFxEoQyNQKM
Take care, JB
@@dr-Jonas-Birch ill be there sir!
Doesn't work at all!. You probably have very old gcc compiler.
It works indeed. Try compiling with -std=c2x
JB