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

Validate elements are structs #190

Merged
merged 2 commits into from
Dec 19, 2020
Merged

Conversation

kyleve
Copy link
Collaborator

@kyleve kyleve commented Dec 18, 2020

This PR introduces validations to ensure that elements are structs – since things will break in weird ways if this is not true unless you are very very careful.

@kyleve kyleve force-pushed the kve/validate-elements-are-structs branch from 7d61d6f to 17af259 Compare December 18, 2020 04:15
@kyleve kyleve requested a review from kylebshr December 18, 2020 04:15
Copy link
Collaborator

@bencochran bencochran left a comment

Choose a reason for hiding this comment

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

Oh how I wish there was a compile-time way to assert this.

@kyleve
Copy link
Collaborator Author

kyleve commented Dec 18, 2020

Ok @bencochran saves the day once again; this is now compile time

@kyleve kyleve force-pushed the kve/validate-elements-are-structs branch from 3c06cd9 to 9a96182 Compare December 18, 2020 06:04
@kyleve kyleve requested a review from watt December 18, 2020 08:03
@kyleve kyleve force-pushed the kve/validate-elements-are-structs branch 2 times, most recently from c4e98f0 to aeeb1e5 Compare December 19, 2020 01:36
@kyleve kyleve merged commit 6e3d551 into main Dec 19, 2020
kyleve added a commit that referenced this pull request Jan 6, 2021
…-structs"

This reverts commit 6e3d551, reversing
changes made to f8d1bc6.
kyleve added a commit that referenced this pull request Jan 12, 2021
* origin/main:
  Bump redcarpet from 3.5.0 to 3.5.1
  Prep 0.19.1
  Update CHANGELOG
  Revert "Merge pull request #190 from square/kve/validate-elements-are-structs"
  Prep 0.19.0
  Remove Travis builds
  Set up Github Actions
  Add a test for how often the builder is called
  Code review, add a couple methods that I used in validating the behaviour of negative positions
  Validate elements are structs
  Fix empty environment referencing a forever-living MeasurementCache.
  Fix SPM build
@watt watt deleted the kve/validate-elements-are-structs branch November 24, 2021 02:20
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

4 participants