Script style: ` or $()?

Doug Barton dougb at FreeBSD.org
Thu May 31 05:41:28 UTC 2012


-----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-----


More information about the freebsd-rc mailing list