Skip to content

Implement todos#35

Merged
xllora merged 5 commits into
google:masterfrom
defrager:ImplementTODOs
Feb 18, 2016
Merged

Implement todos#35
xllora merged 5 commits into
google:masterfrom
defrager:ImplementTODOs

Conversation

@defrager
Copy link
Copy Markdown
Collaborator

Unquote string correctly.
Don't allow partial substrings prefix for covariant (or maybe it should be ok?)

Comment thread triple/node/node.go
return false
}
// /type/foo is covarian of /type, but /typefoo is not covatiant of /type.
return len(t.String()) == len(ot.String()) || t.String()[len(ot.String())] == '/'
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Missing -1 at?

return len(t.String()) == len(ot.String()) || t.String()[len(ot.String())-1] == '/'

Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

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

nope.
if B is "/type"
and A is "/type/foo"
we expect "/" in A[5] index.

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Do'h. Right. I was reading it the other way around. Thx!

@xllora
Copy link
Copy Markdown
Member

xllora commented Feb 18, 2016

Quick question for you.

xllora added a commit that referenced this pull request Feb 18, 2016
@xllora xllora merged commit 8df357c into google:master Feb 18, 2016
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