Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Changed 'writefile' to 'save-file' #133

Merged
merged 24 commits into from
Jan 14, 2019
Merged
Changes from 1 commit
Commits
Show all changes
24 commits
Select commit Hold shift + click to select a range
b9c28ad
changed 'writefile' to 'save-file' to be consistent with 'save-table'…
Dec 25, 2018
ba23ab7
some regular expression usage examples
akkartik Jan 1, 2019
0121b6c
attempt at fixing CI
akkartik Jan 1, 2019
407fd9a
attempt #2 at fixing CI
akkartik Jan 1, 2019
e8f9746
Fix breakage in `nappend`
akkartik Jan 2, 2019
9820f28
Another issue in `nappend`
akkartik Jan 2, 2019
8cdd28b
.
akkartik Jan 4, 2019
bf712ef
.
akkartik Jan 4, 2019
208620e
Have Arc's `load` use an input stream that has Racket's line-counting…
rocketnia Jan 5, 2019
46fda7c
Correct a commented-out line in .travis.yml that would have invoked "…
rocketnia Jan 5, 2019
89bdc25
Yet another `ret` misuse
akkartik Jan 5, 2019
aadef58
simplification to pd.arc
akkartik Jan 5, 2019
3972474
Merge pull request #134 from arclanguage/pd-patch
hjek Jan 5, 2019
b4d0de7
Add unicode conversions to COERCE
shawwn Jan 14, 2019
bf445e1
Add list->unicode-string test
shawwn Jan 14, 2019
957bd8e
Merge pull request #135 from shawwn/2019-01-14/bytes
akkartik Jan 14, 2019
88dcea0
Define UUID
shawwn Jan 14, 2019
ae07faa
.
akkartik Jan 14, 2019
30831da
Merge pull request #136 from shawwn/2019-01-14/uuid
akkartik Jan 14, 2019
74baba9
Let names end with syntax chars
shawwn Jan 14, 2019
7b240bf
Merge pull request #137 from shawwn/2019-01-14/syntax-chars
akkartik Jan 14, 2019
6877e9e
changed 'writefile' to 'save-file' to be consistent with 'save-table'…
Dec 25, 2018
9b840a3
Updated other calls of writefile to save-file
Kinnardian Jan 14, 2019
74f665d
Merge https://github.com/Kinnardian/anarki
Kinnardian Jan 14, 2019
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 3 additions & 2 deletions arc.arc
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,7 @@

1. `for`. See (help for).
2. Templates (arc's lightweight object database system). See (help deftem).
3. `writefile` has been changed to `save-file` to be consistent with `save-table` / `write-table`

If you find others, please report them at http://arclanguage.org/forum.
")))
Expand Down Expand Up @@ -1595,7 +1596,7 @@ expressions as a list."
(fromfile name
(read)))

(def writefile (val name)
(def save-file (val name)
"Outputs 'val' to file 'name' using [[write]]."
(tofile name
(write val)))
Expand Down Expand Up @@ -2898,7 +2899,7 @@ Useful in higher-order functions, or to index into lists, strings, tables, etc."
(= (savers* ',var) (fn (,gv) (,save ,gv ,file)))))))

(mac diskvar (var file)
`(fromdisk ,var ,file nil readfile1 writefile))
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Hmm, now I'm wondering if we should also rename readfile1 to load-file and so on.

But that piles on the incompatibilities. Others may object. What do you think, @hjek?

`(fromdisk ,var ,file nil readfile1 save-file))

(mac disktable (var file)
`(fromdisk ,var ,file (table) load-table save-table))
Expand Down