Re: 3.0.3

new topic     » goto parent     » topic index » view thread      » older message » newer message

CChris wrote:
 
> Isn't
global constant
 FALSE = 0,
 TRUE = not FALSE
 
 global type boolean(integer x)
 return x = x = TRUE
 end type
 

> even faster?
> 

Probably, but is not exactly clear at first reading. You have to think it
through to see that it works. The primary purpose of any programming language
ought to be to help communicate your intentions to humans who read the code, so I
recommend that coders, as a first priority, try to make code clear before trying
to make it as fast as possible.

-- 
Derek Parnell
Melbourne, Australia
Skype name: derek.j.parnell

new topic     » goto parent     » topic index » view thread      » older message » newer message

Search



Quick Links

User menu

Not signed in.

Misc Menu