Рет қаралды 10,381
Write better C++ with these quick tips and tricks. Let's improve the lexer in a compiler to make it shorter and less ugly.
Chat with me live for free code reviews, lessons, and career advice: / strager
0:00 shorter tests with const
1:13 don't cast enums
1:54 what is lexing?
2:53 string_to_double
3:44 last_char vs *iterator
4:11 copying identifiers
4:26 parsing comments
5:01 switch
stethoscope clipart PNG Designed By 颖 from Pngtree.com