Blitz or DarkBasic, your view?

Miscellaneous Forums/General Discussion/Blitz or DarkBasic, your view?

The forum is locked. These are the original blitzbasic.com forums, kept so they can still be read. No new topics, replies or edits can be made here. To join in, head over to the Blitz3D+ forums.


From Bmax
Apply_Motion cmot,0,camera Apply_Motion b1mot,0,mesh_bird,180 Apply_Motion b2mot,0,mesh_bird2,180 fstep#


That's 3 seperate commands on one line (would that even compile?) The DBPro example that Azathoth gave was a single compound statement:
center text object screen x(obj),object screen y(obj)-40,entitydebug$(e)

The BlitzMax equivelant of this might read like this:
CenterText obj.ScreenX(), obj.ScreenY()-40, obj.DebugInfo()

IMO, BlitzMax's style is much more readible. Even though you do get used to DBPro's style after a while, you can frequently get mixed up if. For example, if there are the commands "center text", "object screen x", and "text object", how would you interpret the above DBPro example where it says "center text object screen x". Of course, with a little common sense you can work it out quite easily; however, programming languages are supposed to be entirely precise - no guess work regarding the syntax should ever be an issue.