In bigger projects, you tend to miss type safety really bad, really fast. Rust has it built in, Python can have it bolted on. That’s simply one of the many aspects to consider when choosing your programming language.
But don’t worry about it too much. If one thing’s for sure, it’s that you will regret that choice in any case.
Rust is completely correct to be a dick about it as well. Type safety is there for a reason.
Yeah, gotta newtype it up to make it even more relentless.
Hey at least it’s not JavaScript which is perpetually high on crack with Object object
Well, that happens when you don’t override the
toString
method. Not worse than Java’s 0xf00cu
Do we need any more proof Python is superior?
(I’m ^joking, ^I ^love ^Rust)
You wouldn’t typecast a car.
What about typecasting to a car?
And that’s why I don’t use Python for anything more than simple scripts
For our American friends: the Opel Corsa is a car.
For the Brits, it’s a Vauxhall Corsa.
For everyone : it’s a sh’tbox (never again)
Does it also under-steer like crazy? (https://www.youtube.com/watch?v=2HhhWzrR3Wg)
A connoisseur. You have my upvote.
Ok now how do you cast the spell “float” on it
C when I cast a
char * *
to achar * * const
: okC when I cast a
char * *
to achar * const *
: okC when I cast a
char * *
to achar const * *
: WTFC when I cast a
char * *
to achar const * const *
: okPlease stop, I have CPTSD.
The WTF case isn’t allowed because it would allow modification of the const. From https://en.cppreference.com/w/cpp/language/implicit_conversion
int main() { const char c = ‘c’; char* pc; char** ppc = &pc; const char** pcc = ppc; // Error: not the same as cv-unqualified char**, no implicit conversion. *pcc = &c; *pc = ‘C’; // If the erroneous assignment above is allowed, the const object “c” may be modified. }
Perl when I iterate over an object and treat the result as a hash reference: “fine, whatever. Fuck you, tho”
You don’t even need to cast in Python, a reference is a reference.
If it’s loud, moving, can chase you and honks at you, then it’s
an obnoxious goosea car
Yeah this was a good one to wake up to.
Python doesn’t have casts and is strongly typed.
Did you a word?
And that’s why I love python.
as long as you can shift it
deleted by creator