Skip to content
Commit 4723916f authored by Manfred Hanke's avatar Manfred Hanke 💻
Browse files

general code cleanup

- strings like  "\"" or "\("R can be expressed more easily
  as backquoted strings (namely as `"` and `\(`), as no
  backslash substitution is performed on backquoted strings.

- A $ suffix enables variable substitution on a string:
  e.g.,          "mv $filename.eps.tmp $filename.eps"$
  corresponds to "mv "+filename+".eps.tmp "+filename+".eps"
  and "%.${n}f"$
   to "%."+string(n)+"f";

- `if(not x)' can be simplified to `ifnot(x)'

- The `get1match' and `string_match_perl' functions
  are now deprecated in favour of S-Lang's `string_matches'.

- Some of the FITS file functions indicate in their help
  that there are more direct ways using cfitsio module functions.
  `fits_modify_header' has been deprecated in favour of fits_update_key.
parent 64467698
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment