Thread: New user
View Single Post
Old 11-03-2007, 10:10 PM   #9 (permalink)
Akria
Uber Member
 
Akria's Avatar
 
Join Date: Jan 2007
Location: Grimsby, NELincs
Posts: 2,405
Party: None
Akria is just starting out
Send a message via MSN to Akria
Default

Quote:
Originally Posted by Alex McKee
Regex could be more efficient for anything even slightly complex. It's always a trade-off.
Hmmm... Reading that article, I'd say you're correct. Switch statements, whilst more elegant than hundreds of if/else statements, do look to be much less efficient in the vast majority of cases.
I may have to study them a bit more... They could come in useful.

Akria
__________________
http://real-democracy.co.uk | Admin and proud

The commonality of mankind:
If you prick us, do we not bleed?
If you tickle us, do we not laugh?
If you poison us, do we not die?
Akria is offline   Reply With Quote