Skip to content

Conversation

lassik
Copy link
Contributor

@lassik lassik commented Nov 8, 2022

No description provided.

Try to be consistent, brief, and obvious.

Before:

- read-entire-file and file-contents-as-string (duplicates)
- write-html
- write-org

After:

- read-text-file
- read-html-file
- write-text-file
- write-html-file
- write-org-file
- Consistentyl use
    with-output-to-binary-file
    with-output-to-text-file
  which write the data to a temp file, then move it in place of
  the target file unless an exception was raised.

- Try to avoid the (scheme file) library since it offers
  with-output-to-file without the above robustness.
  Prefer (private file) instead.

- Add a string-join-lines utility (unrelated to the above).
@arthurgleckler arthurgleckler merged commit 418850e into scheme-requests-for-implementation:master Nov 8, 2022
@arthurgleckler
Copy link
Contributor

Merged and pushed.

It keeps getting cleaner and cleaner.

@lassik lassik deleted the patches branch November 8, 2022 16:42
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants