The corporate welfare role
1,002 karma · joined July 1, 2015
The corporate welfare role
Kenneth Branagh in Wild Wild West. (Not sure if that example supports or refutes your claim.)
Not really. "Dynamic type" just means an object that carries around a description of its structure (or more commonly, a pointer to a description). You can do the same thing in many languages with static types. (Including Haskell. GHC has special support for this pattern.)
data Maybe a = Nothing | Just a- the videos are not lectures; they're short, scripted segments. While the production is polished, I found the format irritating. I much prefer actual recorded lectures like the many wonderful (and free) ones available from MIT
- the programming assignments were not challenging. I didn't really feel like I gained anything from them.
I'd love to see the day when our profession invents and adopts objective metrics for attributes such as these so we don't have to rely on opinions.
#include <iostream>
template<bool B, typename T>
std::string doSomething(T t);
template<>
std::string doSomething<true>(std::string s) {
return "true!";
}
template<>
std::string doSomething<false>(int i) {
return "false!";
}
int main() {
std::string foo {"foo"};
auto s1 = doSomething<true>(foo);
auto s2 = doSomething<false>(42);
std::cout << s1 << ", " << s2 << std::endl;
return 0;
}But that aside, the F-35 program was never really about building a fighter jet. It was designed from the beginning as a way to funnel 100s of billions of dollars into the defense industry and to keep that money flowing for decades.
I think they probably realized this and then decided to put the escape key there to justify its existence.
Welcome to systems programming.
That's my point. This idea that there are objects with mutable state is a myth. Even at the smallest scale, what we call elementary particles, are abstractions. There is nothing except the state of the universe at a given instant in time.
I guess we're getting more into philosophical issues now. If I leave an ice cube on my counter, at exactly what time is it no longer an ice cube.
Only if you ignore time. It's not possible to change the state of the world at some previous instant (as far as our understanding of physics is concerned). The mutable world model is an artificial construction that aligns with our human perception.