Gamestudio Links
Zorro Links
Newest Posts
Trading Journey
by howardR. 04/28/24 09:55
Zorro Trader GPT
by TipmyPip. 04/27/24 13:50
Help with plotting multiple ZigZag
by M_D. 04/26/24 20:03
Data from CSV not parsed correctly
by jcl. 04/26/24 11:18
M1 Oversampling
by jcl. 04/26/24 11:12
Why Zorro supports up to 72 cores?
by jcl. 04/26/24 11:09
Eigenwerbung
by jcl. 04/26/24 11:08
AUM Magazine
Latest Screens
The Bible Game
A psychological thriller game
SHADOW (2014)
DEAD TASTE
Who's Online Now
3 registered members (AndrewAMD, Quad, 1 invisible), 721 guests, and 7 spiders.
Key: Admin, Global Mod, Mod
Newest Members
wandaluciaia, Mega_Rod, EternallyCurious, howardR, 11honza11
19049 Registered Users
Previous Thread
Next Thread
Print Thread
Rate Thread
Protest against the fundamental code of this world #230630
10/07/08 09:18
10/07/08 09:18
Joined: Jan 2006
Posts: 1,829
Neustadt, Germany
T
TWO Offline OP

Serious User
TWO  Offline OP

Serious User
T

Joined: Jan 2006
Posts: 1,829
Neustadt, Germany
Ever heard of the 'Zen of Python'?
http://www.python.org/dev/peps/pep-0020/

Explicit is better than implicit.

Code:
technique terraintex
{
  pass multitex_repeat11


void debug_startup()


function on_x_event()


action ent_rotate()


Huh? Was easier to add a str_cmpi(..., "_event") instead of a tooken and some state vars. Shaking me from my head to my toes.

Wouldn't this be better:
Code:
technique terraintex
{
  pass multitex repeat 11
  pass multitex repeat(11) // Even better


startup void debug()
startup debug()


event function on_x()
event on_x()


action int ent_rotate() // ignore int, add it anyway to the WED list.
action ent_rotate()



I imagine if you keep this implicit style till A8, we can write...
Code:
void game_startup_loadleveltest.wmb_seteventTestEntityTestEvent_eatsomecake_repeat11_savemygreat.sav_finally_exit()
{
   print( ";)" );
}


Re: Protest against the fundamental code of this world [Re: TWO] #230653
10/07/08 13:55
10/07/08 13:55
Joined: Jan 2003
Posts: 4,615
Cambridge
Joey Offline
Expert
Joey  Offline
Expert

Joined: Jan 2003
Posts: 4,615
Cambridge
lol, but i second that.

Re: Protest against the fundamental code of this world [Re: Joey] #230704
10/07/08 20:46
10/07/08 20:46
Joined: Oct 2004
Posts: 1,655
T
testDummy Offline
Serious User
testDummy  Offline
Serious User
T

Joined: Oct 2004
Posts: 1,655
'I' agree somewhat.
'I' do not want type and / or behavior automatically (or implicitly) defined through element (function, variable, etc.) name.
Explicit declaration is preferred.


Moderated by  old_bill, Tobias 

Gamestudio download | chip programmers | Zorro platform | shop | Data Protection Policy

oP group Germany GmbH | Birkenstr. 25-27 | 63549 Ronneburg / Germany | info (at) opgroup.de

Powered by UBB.threads™ PHP Forum Software 7.7.1