Python and Option Explicit
-
You do understand that Python was named in honour of "Monty Python's Flying Circus" (where chaos and madness were the norm)?
-
when I see code statements like
goto
andoption explicit
, I run in the opposite direction.den2k88 wrote:
with all the possible ways it enables programmers to shoot themselves
I honestly think that is the objective (thinning the herd). :sigh:
den2k88 wrote:
Every new programmer makes fun of C++
What is funny about this is that most of the software these "new programmers" run, was written partly or mostly in C++. Inconceivable! :laugh:
by the way, this dude revealed a secret feature of
goto
in c++ that apparently very few people know about (from 31m:15s): CppCon 2019: Miro Knejp “Non-conforming C++: the Secrets the Committee Is Hiding From You” - YouTube[^] disclamer: i myself am a visual basic guy, sogoto
caught my attention. i further have no clue about c++ -
Please someone adds an Option Explicit to Python. The fact that something like this is even conceivable, let alone valid, is atrocious:
class Empty:
passEmpty.completelyNewAttribute = "seriously?" # adds a class member
obj = Empty()
obj.randomTypo = 10 # adds an instance member only to objEvery new programmer makes fun of C++ for being unnecessarily hard to use but I think that a language like Python, with all the possible ways it enables programmers to shoot themselves, is 10 times harder than C++. And yes, my opinion that Python is VB with different clothes is only becoming stronger. Ugh.
GCS d--(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--- r+++ y+++* Weapons extension: ma- k++ F+2 X
These days it feels like C# has taken one look at Python and said to the guy next to him: "hold my beer..."
cheers Chris Maunder
-
Please someone adds an Option Explicit to Python. The fact that something like this is even conceivable, let alone valid, is atrocious:
class Empty:
passEmpty.completelyNewAttribute = "seriously?" # adds a class member
obj = Empty()
obj.randomTypo = 10 # adds an instance member only to objEvery new programmer makes fun of C++ for being unnecessarily hard to use but I think that a language like Python, with all the possible ways it enables programmers to shoot themselves, is 10 times harder than C++. And yes, my opinion that Python is VB with different clothes is only becoming stronger. Ugh.
GCS d--(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--- r+++ y+++* Weapons extension: ma- k++ F+2 X
Nahh, that is the fun stuff. When I was doing my first foray into this language I just could not stop giggling, since I could almost imagine Pinky and Brain kinda talking about adding this feature here, that feature over there and how coooool would it be to have feature in their language like that. Anyway, python is great for prototyping AI algos and building\training models. I also heard that web guys do it with quality.But since I use it for my diploma with AI stuff in it, I only saw how well you can use it to build AI stuff with it.