Python Forum
It seems like the overall Python syntax would be error prone
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
It seems like the overall Python syntax would be error prone
#3
It bothered me for about 2 weeks. In some ways it is easier to spot errors in python because everything lines up.

Wait til you start working with classes. The lasses-faire way of setting attributes in python classes drove me nuts for 3 weeks. What do you mean ClassA does not have attribute date? I set date right there in line 21! Then you realize your program has not yet reached line 21 and ClassA.date does not exist yet. Or the really crazy thing that instances a and b, both of ClassA, can have different attributes!

After working with it for a while you'll stop missing your enclosing curly brackets and ending semicolons or whatever syntactic sugar you are used to using and see how some of the things you thought were really sloppy in python end up providing power and flexibility that other languages cannot match.
CynthiaMoore likes this post
Reply


Messages In This Thread
RE: It seems like the overall Python syntax would be error prone - by deanhystad - Apr-01-2020, 08:24 PM

Forum Jump:

User Panel Messages

Announcements
Announcement #1 8/1/2020
Announcement #2 8/2/2020
Announcement #3 8/6/2020