Skip to content
This repository was archived by the owner on Feb 22, 2024. It is now read-only.

Controversial lifetime simplifications #12

Merged
merged 1 commit into from
Oct 1, 2020

Conversation

mkmik
Copy link
Member

@mkmik mkmik commented Oct 1, 2020

I'm more than half way through the rust book and according to the lifetime elision rules described there
we could simplify some of the signatures.

While on one hand being explicit is good, there is an argument in favour of simplifying when possible:
adding unnecessary annotations (lifetime or type decls) is bound to draw some attention when the next
developer reads the code; they might pause to think why would that be necessary and it might thus cause distraction.

@mkmik mkmik requested a review from glyn October 1, 2020 11:28
@glyn
Copy link
Contributor

glyn commented Oct 1, 2020

@mkmik I think this is good. Please could you rebase?

I'm more than half way through the rust book and according to the lifetime elision rules described there
we could simplify some of the signatures.

While on one hand being explicit is good, there is an argument in favour of simplifying when possible:
adding unnecessary annotations (lifetime or type decls) is bound to draw some attention when the next
developer reads the code; they might pause to think why would that be necessary and it might thus cause distraction.
@glyn glyn merged commit eafdf74 into jsonpath-standard:main Oct 1, 2020
@mkmik mkmik deleted the moreclean branch October 1, 2020 12:08
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants