Posts tagged with 'til'

Posts tagged with 'til'

TIL that we can also use walrus operator in Python. To be fair, I didn't learn about it today, but I had an use case to use it today and I remembered. Example: if (my_env := os.getenv("MY_ENV", None)): do_something(my_env) read more →

TIL about C++ initializer lists and how it is (usually) more performant than standard initialization. Example: class Account { private: std::string number; std::string full_name; float balance; public: // Standard initialization ... read more →