ID:179107
 
    if(this)
src << "lala!"
return
Every time I see it it justs looks so...so sloppy! Can't I get this into something that's only a line or two instead of three?
Foomer wrote:
    if(this)
> src << "lala!"
> return
Every time I see it it justs looks so...so sloppy! Can't I get this into something that's only a line or two instead of three?

You could do this,

if(this)
src<<"lala" return

eheheh
In response to Super16
Sept that doesn't work...
In response to Foomer
Maybe this will work.

if(this) src<<"lalal"
return
In response to Super16
Maybies aren't what I'm looking for :oP
if(this) src << "lala!"; return


I haven't tried it, but it looks fine to me.
In response to Cinnom
";" isn't in the reference anywhere, but it works, so okay!
In response to Foomer
Wonderful! I just turned a hidious 65-line proc into a beautiful 35 line one!
In response to Foomer
Foomer wrote:
Wonderful! I just turned a hidious 65-line proc into a beautiful 35 line one!

Is there some sort of line economy you are worrying about? :) You can merge just about anything into fewer line numbers. It's making it easy to read that is the hard part.

Given, in a simple case like the one you gave, it should be easy enough to read anyway. However, getting rid nice visual aids like indentation may not be a good idea in general.
In response to ACWraith
Depends on your code. I'd rather have:

if(!isobj(what)) src << "Get what?"; return
if(!isobj(what)) src << "Get what?"; return
if(!isobj(what)) src << "Get what?"; return
if(!isobj(what)) src << "Get what?"; return
if(!isobj(what)) src << "Get what?"; return
if(!isobj(what)) src << "Get what?"; return
if(!isobj(what)) src << "Get what?"; return
if(!isobj(what)) src << "Get what?"; return

than
if(!isobj(what))
src << "Get what?"
return
if(!isobj(what))
src << "Get what?"
return
if(!isobj(what))
src << "Get what?"
return
if(!isobj(what))
src << "Get what?"
return
if(!isobj(what))
src << "Get what?"
return
if(!isobj(what))
src << "Get what?"
return
if(!isobj(what))
src << "Get what?"
return
if(!isobj(what))
src << "Get what?"
return

Although, as a side note, it was working, now it's not. Gotta figure out what I goofed somewhere along the line.