Comments (2)
In general, I think that the API should not impose the use of trait objects. Assuming we have a Term
trait, having functions accept &T where T: Term
is the best option: people who want compile-time optimization can pass references to concrete types; people who want to avoid monomorphization can restrict themselves to passing exclusively dyn
references. Everyone can have it their way.
I made one exception to that rule: Graph
/Dataset
methods return a boxed iterator (hence a trait object), because 1/ it allows for a default implementation, and 2/ the alternative was horribly cumbersome (declaring a bunch of associated types...).
from sophia_rs.
Can we close this, then?
from sophia_rs.
Related Issues (20)
- Expose `JsonLdQuadSource` and `RdfTerm` types from `sophia_jsonld` HOT 1
- Documentation in the README HOT 1
- Add back query support HOT 4
- Issue casting string to literal with custom datatype using `*` HOT 2
- Issue serializing to TriG `with_pretty` when blank nodes HOT 2
- How to recognize the Any matcher? HOT 6
- Parser failing on RDF/XML files with rdf:about="" HOT 2
- Please rework TermMatcher HOT 3
- Allow more optimizations with `TermMatcher` HOT 1
- Add configuration option to produce indented RDF/XML
- `bool` should implement `Term`
- `RcTerm::Triple` and `ArcTerm::Triple` do not live up to the "cheap clone" promise HOT 4
- Async parsers and serializers HOT 1
- Get rid of boxed iterators
- Add double-licensing (CeCILL-B + Apache V2) HOT 2
- Serialize isomorphic graphs to identical Turtle HOT 4
- Option to allow duplicated rdf:ID values HOT 1
- Add typos to code checking
- Add `Debug` supertype to `iri` parameter in `get` function of `Loader` trait HOT 3
- Iri<T> and IriRef<T> should implement Debug regardless of T
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from sophia_rs.