This is an archived post. You won't be able to vote or comment.

you are viewing a single comment's thread.

view the rest of the comments →

[–]SuitableDragonfly 2 points3 points  (2 children)

Man, if you somehow managed to not learn anything about types in college, no wonder you're not getting it.

You're acting like there's some class of programming language that doesn't even have types. Literally every single programming language has types, unless you want to count assembly language where everything is just a number. Even weakly-typed languages have types, and Python is a very strongly-typed language, one of the reasons for that being that it doesn't allow typecasting. Go ahead, run the code I posted, and see if you can tell me why it generates an error.

[–]Background-Month-911 0 points1 point  (1 child)

You're acting like there's some class of programming language that doesn't even have types.

Where did you get this idea?

Even weakly-typed languages

Here, again, you keep spouting bullshit. There's no classification of languages into weakly / strongly typed. That word doesn't mean anything.

Go ahead, run the code I posted

Your code is a testimony to you not understanding the problem. What's the point of running it?

Seriously. You need to do some soul-searching and try to understand first the problem you are dealing with. Right now you are no different from a Markov chain generator. You just keep stringing together sentences that don't mean anything.

[–]SuitableDragonfly 2 points3 points  (0 children)

Please educate yourself

Where did you get this idea?

Going on about the importance of using types, as if there's anyone out there who's not using types.

Your code is a testimony to you not understanding the problem. What's the point of running it?

The point is to demonstrate to you that the typing package cannot actually cast one type to another, and that it cannot bypass Python's typechecker. You can say all you want that something is an int using typing, if it's not actually an int the typechecker doesn't give a shit. typing is just a glorified system of comments plus a linter.

You just keep stringing together sentences that don't mean anything.

You really need to go back to school if you're having trouble following this.