if { [some command] } {
# do something
}
vs.
if {[some command]} {
# do something
}
Is it good practice to place that additional space after the opening bracket/ending bracket in a statement like above? I assume that its mostly personal preference? What is a better solution, do you think, if any?
Thanks, sorry if it's a noob question.
I myself am fond of the first form - but then I like space. Yes, it is
mostly personal
preference.
Apart from that, I feel that the first form makes it harder to miss
the
square brackets.
Regards,
Arjen
> if { [some command] } {
> vs.
> if {[some command]} {
>
> Is it good practice to place that additional space after the opening bracket/ending bracket in a statement like above? I assume that its mostly personal preference? What is a better solution, do you think, if any?
Mostly personal preference and esthetic appeal.
However there was a time when a performance bug hurt the
compact version but not the spaced verision... as I recall
vaguely.
--
Donald Arseneau as...@triumf.ca