Date: Wed, 30 May 2012 22:41:27 -0700 From: Doug Barton <dougb@FreeBSD.org> To: d@delphij.net Cc: freebsd-rc@FreeBSD.org, Xin Li <delphij@delphij.net> Subject: Re: Script style: ` or $()? Message-ID: <4FC70487.7040102@FreeBSD.org> In-Reply-To: <4FC694C9.9040501@delphij.net> References: <4FC694C9.9040501@delphij.net>
next in thread | previous in thread | raw e-mail | index | archive | help
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA256
On 05/30/2012 14:44, Xin Li wrote:
> Hi,
>
> Is there any rule of style for new code that ` or $() is preferred?
No. If you're creating a brand new file, do whatever you want. If you're
editing an existing file, the common rule of "follow the style in the
file" applies.
Personally, I always use backticks to more easily differentiate from
$((math)) operations, but (again, personally) I have no objection to new
code using $().
hth,
Doug
- --
This .signature sanitized for your protection
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v2.0.19 (FreeBSD)
iQEcBAEBCAAGBQJPxwSHAAoJEFzGhvEaGryEBy4H/3natkwm1Q8GnYBWHlTFH1/p
P96zdoS93UjFdNIv9lKS1Z3BKJdIYOkRE1pJeXRgboM5ZZ+Ujl+hjFgxzIk5RrAH
zc9lr6sa20GGkznLBfGBfpkJmJHIb11EmG5d37zEgGgPQyP9HbJ0NhaVq9cmYyGC
XgJJMgwKiwB28AFeDirRbO7CkhIZZ+PR6dzTBdNarl3hYoCHzv8uM4zXYxp5VcvM
jheGSPXE2Lp6Z45SQ8q/MKn5AKPTzchV8rP+VPL0WqbbCWC/GgQJO2J338KXXCYE
9DAc+DcKI/HHp738O5GC3A/H/pkrLIcGj75oNHQKWC4r8hFKq03EBpB+cPkLzXI=
=yIyS
-----END PGP SIGNATURE-----
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?4FC70487.7040102>
