Lightning Talk: Forbidden C++ - Ali Almutawa - CppCon 2023
Вставка
- Опубліковано 26 сер 2024
- cppcon.org/
---
Lightning Talk: Forbidden C++ - Ali Almutawa - CppCon 2023
github.com/Cpp...
We're gonna go through 15 screenshots of forbidden C++ code that should never be written in an actual codebase.
---
Ali Almutawa
I've worked in the University of Colorado Boulder as a Learning Assistant CSCI 1300 (the intro course) and CSCI 3104 (Algorithms).
---
Videos Filmed & Edited by Bash Films: www.BashFilms.com
UA-cam Channel Managed by Digital Medium Ltd: events.digital...
---
Registration for CppCon: cppcon.org/reg...
#cppcon #cppprogramming #cpp
3:26
Note that it IS possible to explicitly specify a template argument for a generic lambda, you just have to spell out the call operator:
```
auto lambda = []< typename T >(){ return T{}; };
auto result = lambda.operator()< float >();
```
Would it be possible to specify the template argument in a IIFE?
oh!
auto v = [](T){ return 2 + 2; }.operator()(1);
Fun talk, I learned something.
Interesting how a lot of cppcon talks are about how horrible the C++ language is.
Great power comes with great responsibility
I wrote a particularly evil function function the other day, that takes a uint16_t the other day and calls a function that takes the entered number as its template parameter, generating all the if statements with templates and recursive calls.
Alright.
Now going back to c11...
Amen
How to make C++ code unreadable with zero semantics gain! 😂
glad to not have to write c++ anymore. would rather reverse it anyways...
1:25, and the memory wasn't initialized.
does it matter for in the context of a question?
Wasted time
is there something more annoying than vocal fry?