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

Brian/bounds library #4

Merged
merged 4 commits into from
Apr 20, 2020
Merged

Brian/bounds library #4

merged 4 commits into from
Apr 20, 2020

Conversation

bweick
Copy link
Contributor

@bweick bweick commented Apr 20, 2020

No description provided.

}

/* ============ Functions ============ */
function isValid(Bounds memory _bounds) internal pure returns(bool) {
Copy link
Contributor

Choose a reason for hiding this comment

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

Interesting that this one is memory while the other ones are storage. I wonder if we should have both versions for every function

Copy link
Contributor

Choose a reason for hiding this comment

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

We can call the storage one isWithinS or isWithinStorage

Copy link
Contributor

Choose a reason for hiding this comment

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

Thinking about it, would it work for these to be memory? I think that when a storage element is passed in as a parameter, its automatically turned to memory.

Also, libraries in general, should aim to be in memory so it can be used by a larger variety of purposes

@@ -0,0 +1,40 @@
/*
Copyright 2019 Set Labs Inc.
Copy link
Contributor

Choose a reason for hiding this comment

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

2020

@bweick bweick merged commit 9160878 into master Apr 20, 2020
@bweick bweick deleted the brian/bounds_library branch April 20, 2020 21:17
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.

None yet

2 participants