The question is:- 'Is it better to use # or $chan in scripts?'. The original argument came about because I used # in an answer to a question in #helpdesk on DALnet and Soul_Eater 'corrected it' by changing every # to $chan....which to me is pointless at best and actually makes the code bigger.
<Soul_Eater> according to mirc help, $chan is the official remote identifier
<Splodge> But what is the difference in practice?
<Soul_Eater> its cleaner, more professional.
<Splodge> How is that a practical difference, even if it were true, which it isn't
<Splodge> ?
<Soul_Eater> ok which looks better to you:
<Splodge> # is cleaner, shorter, more compact and efficient
<Soul_Eater> echo -a $chan(#).topic or echo -a $chan($chan).topic or what about //mode $chan +o $me or //mode # +o $me
<Splodge> Only the last is relevant
<Splodge> $chan() is a different identifier
<Soul_Eater> i was giving examples of using # and $chan interchangeably.
<Splodge> exactly, either works
<Splodge> but # is shorter
<Soul_Eater> right but its ugly and not clean looking.
<Splodge> # is cleaner, 1 char, 1 byte.
<Splodge> why waste bytes on $chan?
<Splodge> unless you want bloated code
<Soul_Eater> which looks more professional: echo -a $chan(#).topic or echo -a $chan($chan).topic
<Splodge> the 1st uses less memory
<Splodge> so is more efficient
<Splodge> & quicker to type
<Soul_Eater> you know what were gonna solve this once and for all. im gonna ask on the mirc forums
<Splodge> There are only disadvantages to using $chan, no advantages at all
<Splodge> sure, ask
etc
Splodge #scripting DALnet/Undernet
My IRC help links