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

better primitives docs and comments, and some tweaks #30

Merged
merged 9 commits into from
Dec 28, 2023
Merged

Conversation

rafaqz
Copy link
Member

@rafaqz rafaqz commented Dec 26, 2023

@skygering let me know if this makes more sense to you.

Explaining recursive methods is kind of hard, and I write a lot of code like this so I probably don't see how or what is confusing.

`apply` applies some function to every geometry matching the `Target`
GeoInterface trait, in some arbitrarily nested object made up of:
- `AbstractArray`s
- Some arbitrary iterables may also work here
Copy link
Collaborator

Choose a reason for hiding this comment

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

I am not really sure what this is referring too

Copy link
Member Author

Choose a reason for hiding this comment

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

You mean the dot points? They are the types that will be accepted and recursed over by apply.

Maybe I can make that clearer.

Copy link
Member Author

@rafaqz rafaqz Dec 27, 2023

Choose a reason for hiding this comment

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

Or you mean the iterables? it doesn't quite sit with the others but anything unknown (no trait and not an AbstractArray) we try to iterate over.

Copy link
Collaborator

Choose a reason for hiding this comment

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

Okay yeah that makes sense.

Copy link
Member Author

Choose a reason for hiding this comment

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

Ok I'll try to work that into the text

@skygering
Copy link
Collaborator

I did a spell check, but yeah other than my one comment above, I get what it does. Reads pretty well

@skygering
Copy link
Collaborator

Happy for it to merge

src/primitives.jl Outdated Show resolved Hide resolved
src/primitives.jl Outdated Show resolved Hide resolved
src/primitives.jl Outdated Show resolved Hide resolved
@rafaqz rafaqz merged commit 96fd37b into main Dec 28, 2023
@rafaqz rafaqz deleted the primitives_docs branch December 28, 2023 00:53
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants