Skip to Content.
Sympa Menu

sm-discuss - Re: [SM-Discuss] The Great E-mails: part 2 (DETAILS)

sm-discuss AT lists.ibiblio.org

Subject: Public SourceMage Discussion List

List archive

Chronological Thread  
  • From: Mark Bainter <mbainter-smgl AT trampledstones.com>
  • To: sm-discuss AT lists.ibiblio.org
  • Subject: Re: [SM-Discuss] The Great E-mails: part 2 (DETAILS)
  • Date: Mon, 31 Aug 2009 11:22:13 -0500

Eric Sandall [eric AT sandall.us] wrote:
> On Sat, 29 Aug 2009 03:47:44 +0400
> Vlad Glagolev <stealth AT sourcemage.org> wrote:
> > - use quotes and braces only when they are really needed
>
> I could agree with this, especially since this is how I currently
> write. :) You may want to define "need".
>
> e.g. use {} for the following:
> SOURCE=${SPELL}_$VERSION.tar.bz2
>
> but not the following:
> SOURCE=${SPELL}-${VERSION}.tar.bz2
>


I have to disagree there. Personally I find the use of ${} in these
situations is really useful for clarity, and again for new developers
I'd rather they be over-specific and have the code work the first time
than miss something subtle that results in a weird bug down the road.


--

Attachment: pgpNrSZ_aAnvA.pgp
Description: PGP signature




Archive powered by MHonArc 2.6.24.

Top of Page