MAIN FEEDS
Do you want to continue?
https://www.reddit.com/r/ProgrammerHumor/comments/igvny1/python_goes_brrrr/g2x46sr?context=9999
r/ProgrammerHumor • u/das_freak • Aug 26 '20
789 comments sorted by
View all comments
140
I'm learning Python after learning C and lemme tell you, some stuff that Python does look so illegal yet they work. I love it!
121 u/[deleted] Aug 26 '20 Wondering though, why do people consider this a good thing in Python but a bad thing in JS? 0 u/[deleted] Aug 26 '20 [deleted] -6 u/_PM_ME_PANGOLINS_ Aug 26 '20 edited Aug 26 '20 No, Python does not have strong typing, at all.It has type hints, but they’re not enforced.Edit: apparently there is no agreed definition for what “strong” or “weak” typing is, so this conversation is pointless.https://en.m.wikipedia.org/wiki/Strong_and_weak_typing 11 u/Pluckerpluck Aug 26 '20 Python is strongly typed. That means types won't automatically coerce when you try to use them in weird situations. They require explicit conversion.You are refering to the difference between dynamic and static typing. 1 u/[deleted] Aug 26 '20 So, JS is the (almost, idk) only weakly typed language? → More replies (1)
121
Wondering though, why do people consider this a good thing in Python but a bad thing in JS?
0 u/[deleted] Aug 26 '20 [deleted] -6 u/_PM_ME_PANGOLINS_ Aug 26 '20 edited Aug 26 '20 No, Python does not have strong typing, at all.It has type hints, but they’re not enforced.Edit: apparently there is no agreed definition for what “strong” or “weak” typing is, so this conversation is pointless.https://en.m.wikipedia.org/wiki/Strong_and_weak_typing 11 u/Pluckerpluck Aug 26 '20 Python is strongly typed. That means types won't automatically coerce when you try to use them in weird situations. They require explicit conversion.You are refering to the difference between dynamic and static typing. 1 u/[deleted] Aug 26 '20 So, JS is the (almost, idk) only weakly typed language? → More replies (1)
0
[deleted]
-6 u/_PM_ME_PANGOLINS_ Aug 26 '20 edited Aug 26 '20 No, Python does not have strong typing, at all.It has type hints, but they’re not enforced.Edit: apparently there is no agreed definition for what “strong” or “weak” typing is, so this conversation is pointless.https://en.m.wikipedia.org/wiki/Strong_and_weak_typing 11 u/Pluckerpluck Aug 26 '20 Python is strongly typed. That means types won't automatically coerce when you try to use them in weird situations. They require explicit conversion.You are refering to the difference between dynamic and static typing. 1 u/[deleted] Aug 26 '20 So, JS is the (almost, idk) only weakly typed language? → More replies (1)
-6
No, Python does not have strong typing, at all.
It has type hints, but they’re not enforced.
Edit: apparently there is no agreed definition for what “strong” or “weak” typing is, so this conversation is pointless.
https://en.m.wikipedia.org/wiki/Strong_and_weak_typing
11 u/Pluckerpluck Aug 26 '20 Python is strongly typed. That means types won't automatically coerce when you try to use them in weird situations. They require explicit conversion.You are refering to the difference between dynamic and static typing. 1 u/[deleted] Aug 26 '20 So, JS is the (almost, idk) only weakly typed language? → More replies (1)
11
Python is strongly typed. That means types won't automatically coerce when you try to use them in weird situations. They require explicit conversion.
You are refering to the difference between dynamic and static typing.
1 u/[deleted] Aug 26 '20 So, JS is the (almost, idk) only weakly typed language? → More replies (1)
1
So, JS is the (almost, idk) only weakly typed language?
→ More replies (1)
140
u/Darcoxy Aug 26 '20
I'm learning Python after learning C and lemme tell you, some stuff that Python does look so illegal yet they work. I love it!