Tag: const
6 posts
-
"passing const as this discards qualifiers": Ten C++ const Errors and Their Fixes
Ten real GCC const errors, from "discards qualifiers" to "cannot bind non-const lvalue reference": what each message means and the fix, not const_cast.
-
static, extern, const, constexpr, inline, volatile, mutable: What Each C++ Keyword Changes
A practical rundown of C++ storage and type-qualifier keywords - static, extern, const, constexpr, inline, volatile, and mutable - with what each one actually changes about linkage and lifetime.
-
var vs let vs const in JavaScript: Scope, the TDZ, and the Bugs Each One Causes
How var, let, and const really differ: block vs function scope, the temporal dead zone, per-iteration loop bindings, window leaks, and the errors each throws.
-
Starting JavaScript: ECMAScript, Browser vs Node.js, Core Syntax and var vs let vs const
JavaScript tutorial for beginners: ECMAScript and runtimes, core syntax, and var vs let vs const—with examples you can run in the browser or Node.js.
-
C++ Clean Code Basics: Express Intent with const and noexcept
Use const correctness, noexcept, and [[nodiscard]] in C++ APIs so interfaces state what they guarantee.
-
Const Correctness in C++: const Members, Pointers, References and When mutable Is Fine
C++ const correctness: reading const pointers, const member functions and GCC errors, shallow const, thread-safe mutable, and const that blocks moves.