Skip to content

Add equals function to better calculate equality - #395

Merged
bryanjos merged 4 commits into
masterfrom
fix-equals
Sep 9, 2017
Merged

Add equals function to better calculate equality#395
bryanjos merged 4 commits into
masterfrom
fix-equals

Conversation

@bryanjos

@bryanjos bryanjos commented Sep 9, 2017

Copy link
Copy Markdown
Collaborator

fixes #382

}

for (let i = 0; i < left.length; i++) {
if (equals(left[i], right[i]) === false) {

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

'equals' was used before it was defined.

end

def compile({{:., _, [:erlang, op]}, _, [left, right]}, state) when op in [:+, :-, :*, :/, :==, :>, :<, :>=] do
def compile({{:., _, [:erlang, op]}, _, [left, right]}, state) when op in [:==, :===] do

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Functions should have a @SPEC type specification.

{ast, state}
end

def compile({{:., _, [:erlang, op]}, _, [left, right]}, state) when op in [:+, :-, :*, :/, :>, :<, :>=] do

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Functions should have a @SPEC type specification.

//TODO: Support more options, global is implied
//TODO: pattern cannot be list of strings
// TODO: Support more options, global is implied
// TODO: pattern cannot be list of strings

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

TODO found


//TODO: Support more options, global is implied
//TODO: pattern cannot be list of strings
// TODO: Support more options, global is implied

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

TODO found

//TODO: Support more options
//TODO: pattern cannot be list of strings
// TODO: Support more options
// TODO: pattern cannot be list of strings

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

TODO found


//TODO: Support more options
//TODO: pattern cannot be list of strings
// TODO: Support more options

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

TODO found

@sourcelevel-bot

Copy link
Copy Markdown

Ebert has finished reviewing this Pull Request and has found:

  • 1 possible new issue (including those that may have been commented here).
  • 22 fixed issues! 🎉

You can see more details about this review at https://ebertapp.io/github/elixirscript/elixirscript/pulls/395.

@bryanjos
bryanjos merged commit e44b7c0 into master Sep 9, 2017
@bryanjos
bryanjos deleted the fix-equals branch September 9, 2017 08:54
@vans163

vans163 commented Sep 9, 2017

Copy link
Copy Markdown
Contributor

Question / nitpick, is :!= and :!== covered? (maybe its :/= and :=/=)

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.

immutablility ==

2 participants