ocaml.org icon indicating copy to clipboard operation
ocaml.org copied to clipboard

New File Manipulation tutorial

Open tmattio opened this issue 2 years ago • 1 comments

tmattio avatar Jul 17 '23 16:07 tmattio

Update: @Julow proposes to change the Reading and Writing sections like this: https://github.com/Julow/v3.ocaml.org-server/commit/5cff2c26b2d1b3c826af35bee5522e9a05a8abc6

  • The concept of flush is removed. It is covered later.
  • The with_* functions are used as they are safer and more practical.
  • The mention of open_binary is removed. It was not explained and is an advanced concept.

Overall I agree with Jules' assessment: we should promote good practices using the safe APIs and some topics need to be rearranged between advanced topics and the main section.

sabine avatar Jul 19 '23 14:07 sabine

Closing as stalled. Feedback from Discuss was to use the Unix module instead of the standard library. If anyone would like to port this new tutorial to using Unix, contributions are welcome!

tmattio avatar Oct 01 '24 07:10 tmattio