Skip to content

[minor] use a record in Compenv.process_deferred_actions#14026

Merged
gasche merged 1 commit intoocaml:trunkfrom
gasche:compenv-minor-refactor
May 14, 2025
Merged

[minor] use a record in Compenv.process_deferred_actions#14026
gasche merged 1 commit intoocaml:trunkfrom
gasche:compenv-minor-refactor

Conversation

@gasche
Copy link
Copy Markdown
Member

@gasche gasche commented May 11, 2025

I'm trying to look at #13766 again, and one of the changes touches a tuple type in Compenv that has a documentation comment for each component. This is a case where using a record makes things clearer, so I went to use that instead.

Copy link
Copy Markdown
Contributor

@nojb nojb left a comment

Choose a reason for hiding this comment

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

LGTM

I left a few comments, but they are purely optional.

Comment on lines +633 to +638
log : Format.formatter;
compile_implementation:
start_from:Clflags.Compiler_pass.t ->
source_file:string -> output_prefix:string -> unit;
compile_interface:
source_file:string -> output_prefix:string -> unit;
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

I would have called these fields ppf, implementation, and interface which are the names used everywhere else for them, but up to you.

@nojb nojb self-assigned this May 14, 2025
@nojb
Copy link
Copy Markdown
Contributor

nojb commented May 14, 2025

@gasche check-typo needs to be satisfied; then feel free to merge if you are happy with the state of the PR.

@gasche gasche force-pushed the compenv-minor-refactor branch from a4fc12a to b8a7fa1 Compare May 14, 2025 14:27
Reviewed-by: Nicolás Ojeda Bär <n.oje.bar@gmail.com>
@gasche gasche force-pushed the compenv-minor-refactor branch from b8a7fa1 to e83af50 Compare May 14, 2025 14:29
@gasche gasche merged commit ce31015 into ocaml:trunk May 14, 2025
32 of 33 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants