Skip to content

Array sort#477

Merged
guipublic merged 6 commits intomasterfrom
gd/array_sort
Nov 18, 2022
Merged

Array sort#477
guipublic merged 6 commits intomasterfrom
gd/array_sort

Conversation

@guipublic
Copy link
Contributor

Description

Summary of changes

Add array::sort() in noir standard library.

Test additions / changes

This PR requires #475 for the sort to work properly.

@guipublic guipublic changed the title add array::sort() in the std::lib Array sort Nov 15, 2022
Copy link
Contributor

@jfecher jfecher left a comment

Choose a reason for hiding this comment

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

The error message id decent enough now that users can reasonably figure out what went wrong and fix it if they encounter this.

It doesn't mention unit types if they were used, but these are perhaps less likely to be accidentally used in a comparison than struct/tuple types.

@guipublic guipublic merged commit 16ce5b2 into master Nov 18, 2022
@guipublic guipublic deleted the gd/array_sort branch November 18, 2022 15:35
TomAFrench added a commit to TomAFrench/noir that referenced this pull request Nov 19, 2022
* master:
  Array sort (noir-lang#477)
  Add `--allow-warnings` flag to treat certain errors as warnings (noir-lang#481)
  Improve field comparison error message (noir-lang#499)
  Disable debug output during integration tests (noir-lang#494)
  Aligns build to (noir-lang#443) Refactor stdlib into a separate noir library (noir-lang#496)
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