-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
The "str" library is still shipped together with the OCaml stdlib but generally considered obsolete; better alternatives include the `re` library that we use in Catala, but here, the use-case being very simple, `Scanf` is powerful enough and reasults in more readable code. To be honest, my main motivation was avoiding the need to link another dependency into the Catala runtime :) Note/advice: side effects within `assert` should be avoided, `assert` in OCaml is not a standard function and it would break your code if compiled with the `-noassert` flag.
- Loading branch information
Showing
2 changed files
with
9 additions
and
16 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,3 @@ | ||
(library | ||
(libraries str) | ||
(public_name dates_calc) | ||
) |