Protest against the fundamental code of this world

Posted By: TWO

Protest against the fundamental code of this world - 10/07/08 09:18

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( ";)" );
}

Posted By: Joey

Re: Protest against the fundamental code of this world - 10/07/08 13:55

lol, but i second that.
Posted By: testDummy

Re: Protest against the fundamental code of this world - 10/07/08 20:46

'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.
© 2024 lite-C Forums