Skip to content

Conversation

@MarisaKirisame
Copy link
Contributor

the strict mode require that all pattern is exhausted. by default it is on, so one had to explicitly turn it off for hd, tl, foldl1, etc. This stop all the warning generated by the exhaust matcher, and enforce better coding style as partial function will be more explicit.

lint

lint

lint

do

make completeness check an error

lint

remove fatal
@slyubomirsky
Copy link
Contributor

Very good addition, thanks for doing it

@slyubomirsky
Copy link
Contributor

Should the match completeness and the fatal stuff be the same PR, though? There are more issues where fatal is involved:

  • Ensuring interpreters handle it and testing it
  • Ensuring passes that may need to care about it do handle it

@MarisaKirisame
Copy link
Contributor Author

We'll do fatal next time

@slyubomirsky
Copy link
Contributor

slyubomirsky commented Jul 31, 2019

Thanks for removing fatal, I think this is in a good state now.

Copy link
Contributor

@slyubomirsky slyubomirsky left a comment

Choose a reason for hiding this comment

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

A nitpick about the comments, but otherwise LGTM.

Copy link
Contributor

@tmoreau89 tmoreau89 left a comment

Choose a reason for hiding this comment

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

LGTM

@tmoreau89 tmoreau89 merged commit 331585f into apache:master Aug 1, 2019
@MarisaKirisame MarisaKirisame deleted the strict-match branch August 6, 2019 19:54
wweic pushed a commit to wweic/tvm that referenced this pull request Aug 9, 2019
* add fatal

lint

lint

lint

do

make completeness check an error

lint

remove fatal

* fix test

* reset parser file

* remove unneeded import

* Update python/tvm/relay/adt.py

Co-Authored-By: Steven S. Lyubomirsky <[email protected]>

* Update include/tvm/relay/adt.h

Co-Authored-By: Steven S. Lyubomirsky <[email protected]>

* Eliminate trailing whitespace (my fault)
wweic pushed a commit to neo-ai/tvm that referenced this pull request Sep 6, 2019
* add fatal

lint

lint

lint

do

make completeness check an error

lint

remove fatal

* fix test

* reset parser file

* remove unneeded import

* Update python/tvm/relay/adt.py

Co-Authored-By: Steven S. Lyubomirsky <[email protected]>

* Update include/tvm/relay/adt.h

Co-Authored-By: Steven S. Lyubomirsky <[email protected]>

* Eliminate trailing whitespace (my fault)
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.

3 participants