Skip to content

read-line function #154

Locked Answered by jenshaase
Chemaclass asked this question in Q&A
Jan 6, 2021 · 1 comments · 1 reply
Discussion options

You must be logged in to vote

Regarding (read-line):

You can use (php/readline) if you have ext-readline installed. I will not wrap this function in the core library because it requires a extension.

Regarding an io:

In the clojure / Java world it makes sense to wrap the java.io library because it is well defined and used very often in a lot of code. In PHP the io utils are much simpler. I would recommend to use them directly (e.g. (php/file_get_contents "path/to/file") or (php/file_put_contents "path/to/file" "content")). However, if you have a cool idea on how to make a very good io library you can just create a library for it in an extra repository.

In general I want to keep the core library of Phel small. I would l…

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@Chemaclass
Comment options

Chemaclass Jan 7, 2021
Maintainer Author

Answer selected by Chemaclass
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
solved Question solved
2 participants