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

Issue#140: Added gt and gte for for consistency to Logic #351

Merged
merged 1 commit into from
May 1, 2023

Conversation

Sanchit-kumar
Copy link
Contributor

Description & Motivation

As per #140 , for equality, less than, and less than or equal to, Logic has eq, lt, and lte, respectively, since those operators have different meanings (object equality, conditional assignment, and assignment, respectively). Since greater than and greater than or equal to do not use those operators for something else, they were overloaded for > and >=. However, this is a little inconsistent and confusing to new users. It would be nice if you could also optionally use gt and gte for consistency.

Testing

Added test cases in test/comparison_test.dart

Documentation

Does the change require any updates to documentation? If so, where? Are they included?

Yes. I have updated README.md and doc/tutorials/chapter_2/00_basic_logic.md for the support of gt and gte.

@mkorbel1 mkorbel1 linked an issue Apr 28, 2023 that may be closed by this pull request
Copy link
Contributor

@mkorbel1 mkorbel1 left a comment

Choose a reason for hiding this comment

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

Thank you for taking this up!

lib/src/logic.dart Show resolved Hide resolved
Copy link
Contributor

@mkorbel1 mkorbel1 left a comment

Choose a reason for hiding this comment

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

Looks great, thank you for your contribution!

@mkorbel1 mkorbel1 merged commit 50d68c6 into intel:main May 1, 2023
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.

Add gt and gte for consistency to Logic
2 participants