bilboa
|
8 years ago
|
on: C++17 constexpr everything, or as much as the compiler can
Apparently constexpr is like "inline". Just as the inline keyword doesn't actually guarantee that the compiler will inline a function, so constexpr doesn't require the compiler to precompute something, but rather just gives a hint to the compiler that you'd like it to if it can.
bilboa
|
8 years ago
|
on: Readable Clojure
Exactly. The author wasn't advising against using higher order functions in general, just certain ones like comp and partial, which are easily replaced by anonymous functions. I.e. (comp a b) is the same as #(a (b %)), so why not use the latter if it's easier to understand. I don't completely agree with the author on this point, but I know he wasn't against higher order functions.
bilboa
|
8 years ago
|
on: Southwest to Stop Overbooking as United Uproar Echoes
Yes, that's what "standby" tickets basically are. Some airlines would (not sure it's still a thing) sell you a "standby" ticket for cheaper than a normal ticket, which meant you show up and wait at the gate until near departure time, and then if there are any seats available they let you on the plane. If not you have to wait for the next flight.