Even the best of us...
-
if (startupFailure)
{
startupFailure = true;
}I must have been doing something else at some point, and this is all that is left now. :sigh: :doh: Marc
Imperative to Functional Programming Succinctly Contributors Wanted for Higher Order Programming Project! Learning to code with python is like learning to swim with those little arm floaties. It gives you undeserved confidence and will eventually drown you. - DangerBunny
-
if (startupFailure)
{
startupFailure = true;
}I must have been doing something else at some point, and this is all that is left now. :sigh: :doh: Marc
Imperative to Functional Programming Succinctly Contributors Wanted for Higher Order Programming Project! Learning to code with python is like learning to swim with those little arm floaties. It gives you undeserved confidence and will eventually drown you. - DangerBunny
Debugging purposes? Sometimes these instructions remain...
DURA LEX, SED LEX GCS d--- s-/++ a- C++++ U+++ P- L- E-- W++ N++ o+ K- w+++ O? M-- V? PS+ PE- Y+ PGP t++ 5? X R++ tv-- b+ DI+++ D++ G e++>+++ h--- ++>+++ y+++* Weapons extension: ma- k++ F+2 X If you think 'goto' is evil, try writing an Assembly program without JMP. -- TNCaver When I was six, there were no ones and zeroes - only zeroes. And not all of them worked. -- Ravi Bhavnani
-
if (startupFailure)
{
startupFailure = true;
}I must have been doing something else at some point, and this is all that is left now. :sigh: :doh: Marc
Imperative to Functional Programming Succinctly Contributors Wanted for Higher Order Programming Project! Learning to code with python is like learning to swim with those little arm floaties. It gives you undeserved confidence and will eventually drown you. - DangerBunny
-
if (startupFailure)
{
startupFailure = true;
}I must have been doing something else at some point, and this is all that is left now. :sigh: :doh: Marc
Imperative to Functional Programming Succinctly Contributors Wanted for Higher Order Programming Project! Learning to code with python is like learning to swim with those little arm floaties. It gives you undeserved confidence and will eventually drown you. - DangerBunny
Schrodinger's cat override? Just to be sure...
-
if (startupFailure)
{
startupFailure = true;
}I must have been doing something else at some point, and this is all that is left now. :sigh: :doh: Marc
Imperative to Functional Programming Succinctly Contributors Wanted for Higher Order Programming Project! Learning to code with python is like learning to swim with those little arm floaties. It gives you undeserved confidence and will eventually drown you. - DangerBunny
Since the language is not known I can only assume an untyped or weakly typed language and startupFailure might be true for an unbelievable amount of values. You're just putting that right with your assignment (again assuming true is a boolean literal). Nothing weird to see here, run along! :-D
"I had the right to remain silent, but I didn't have the ability!"
Ron White, Comedian
-
if (startupFailure)
{
startupFailure = true;
}I must have been doing something else at some point, and this is all that is left now. :sigh: :doh: Marc
Imperative to Functional Programming Succinctly Contributors Wanted for Higher Order Programming Project! Learning to code with python is like learning to swim with those little arm floaties. It gives you undeserved confidence and will eventually drown you. - DangerBunny
Ah. Here's my version:
if (startupFailure)
{
DoSomething();
}
{
DoSomethingElse();
}Software Zen:
delete this;
-
if (startupFailure)
{
startupFailure = true;
}I must have been doing something else at some point, and this is all that is left now. :sigh: :doh: Marc
Imperative to Functional Programming Succinctly Contributors Wanted for Higher Order Programming Project! Learning to code with python is like learning to swim with those little arm floaties. It gives you undeserved confidence and will eventually drown you. - DangerBunny
It just made me think of a new pattern: the Failure Swallowing pattern (a behavioural one).
bool failure;
try {
// Some lengthy and fault-prone code
// ...
}
catch {
failure = false;
}
finally {
failure = false;
}
if (failure) {
failure = false;
}And here is it; you will never see any error anymore. ;P
Loneliness and cheeseburgers are a dangerous mix.