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

Remove infer_input_format option #858

Merged
merged 1 commit into from
Oct 4, 2023

Conversation

bclement-ocp
Copy link
Collaborator

The use of infer_input_format / input_format is confusing:

  • By default, infer_input_format is true
  • We only ever look at input_format if infer_input_format is false
  • We only set infer_input_format to false when we explicitly set input_format to a non-default value

Since we can never look at the default value of input_format, this patch removes infer_input_format and makes input_format an option to better align with the way it is used.

The use of `infer_input_format` / `input_format` is confusing:

 - By default, `infer_input_format` is `true`
 - We only ever look at `input_format` if `infer_input_format` is
   `false`
 - We only set `infer_input_format` to `false` when we explicitly
   set `input_format` to a non-default value

Since we can never look at the default value of `input_format`, this
patch removes `infer_input_format` and makes `input_format` an `option`
to better align with the way it is used.
Copy link
Collaborator

@Halbaroth Halbaroth left a comment

Choose a reason for hiding this comment

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

Thanks :)

@bclement-ocp bclement-ocp enabled auto-merge (squash) October 4, 2023 09:15
@bclement-ocp bclement-ocp merged commit af032ee into OCamlPro:next Oct 4, 2023
13 checks passed
@bclement-ocp bclement-ocp deleted the infer_input_format branch January 23, 2024 08:47
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants