-
Notifications
You must be signed in to change notification settings - Fork 41
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
Open files in append mode #7
Comments
I think the most consistent way to add this would be to have I added it this way in my port: rkoeninger/ShenSharp@620c042 |
@rkoeninger have you tried it with the type checker enabled? because adding support in the backend is not enough since Shen's type-checker treats In your case, when you open with |
To clarify, it is not something that is not fixeable, I know what code to change and where, but I would rather not introduce changes to existing functionality when possible. Also I never really liked for (open-out "/some/path" [append create-if-not-exists])
(open-out "/some/path" [truncate])
(open-out "/some/path" [fail-if-exists]) etc etc (you get the idea). This option leaves things open for further extension (because append is not the only possible modifier for how files are opened). |
I get a type error for I'm guessing the additional options would all optional per platform. |
Append mode streams discussion
Shen truncates files when it opens them and there is no way to specify if files should be opened in stream mode.
Current implementations
TODO: add others
The text was updated successfully, but these errors were encountered: