Skip to content

Commit f45677c

Browse files
author
Eric Prud'hommeaux
authored
Clarify that return Terms are novel
for s a quad store with one triple, ## Triples are novel ``` javascript s.getQuads()[0].equals(s.getQuads()[0]) // true s.getQuads()[0] == s.getQuads()[0] // false ``` ## Terms are novel ``` javascript s.getQuads()[0].subject.equals(s.getQuads()[0].subject) // true s.getQuads()[0].subject == s.getQuads()[0].subject // false ```
1 parent 5a5a91d commit f45677c

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

index.html

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -99,6 +99,9 @@ <h2>Design elements and principles</h2>
9999
<li>Instances of the interfaces created with different libraries should be interoperable.</li>
100100
<li>Interfaces do <em>not</em> specify how instances are stored in memory.</li>
101101
<li>Interfaces mandate specific pre-defined methods such as <code>.equals()</code>.</li>
102+
<li>
103+
Interfaces are not expected to expose internal objects or return the same object from sucessive calls. Callers shoud use the `Term.equals()` function instead of `===` or `==` to test for equivalence.
104+
</li>
102105
<li>
103106
Factory functions (e.g., <code>quad()</code>) or methods (e.g.,
104107
<code>store.createQuad()</code>) create instances.

0 commit comments

Comments
 (0)