Comments (2)
On the contrary, this error message is almost as helpful as it could be. An assertion failure means that an internal invariant of Links has been violated and points to the line of code where something that should never happen did happen. Admittedly, some instances of 'assert false' are also places where we've just not got round to implementing something. We could catch the exceptions resulting from assert false and say something like "internal error", but really that would only change things superficially.
Perhaps a first year PhD student would like to track down and fix error messages in Links ;-)
Looking at that line of code, I'm not quite sure a) why there's an assert false there, or b) what a correct implementation would look like. If you give me a minimal failing example then that would help. (A quick fix is simply to replace 'assert false' with 't', but I'm not sure if that's the right thing to do.)
from links.
You're right of course, but you're also looking at it from the perspective of the Links implementer. To the Links user that assertion failure is just as useful as "internal error", which is not very useful at all.
Well, this one first year PhD student I know thought he could get away with just being a user for now, but it's not working out for him... ;-)
I'll see what I can do about a minimized example.
from links.
Related Issues (20)
- Unbound effect variables in type aliases when effect sugar is enabled
- Incorrect resolution of shadowed names in mutual blocks HOT 2
- "flat" and "nested" kinds for query results
- Lens refactor HOT 2
- Kind inference
- dateToInt -> intToDate does not roundtrip depending on time zone HOT 3
- Interaction between session-typed communication and effects is broken even without multi-shot continuations
- Incomplete rows can trigger an internal error
- Some questions about your work :) HOT 3
- REPL prompt disappears HOT 5
- "opam install links" doesn't produce linx executable in Ocaml 5.0.0 HOT 8
- Restriction of using row polymorphism for the effect system
- Recent versions of ppx_sexp_conv cause warnings in lens code
- Untypesettable session types
- Implement delegatable channels
- Rename links-mysql8 driver to links-mysql? HOT 2
- SPARQL improvements
- ppx_sexp_conv creates code triggering warning 40 HOT 3
- Incompatible with OCaml 4.08 HOT 2
- Continuation cancellation hangs
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 links.