Code Monkey home page Code Monkey logo

Comments (2)

slindley avatar slindley commented on September 13, 2024

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.

fehrenbach avatar fehrenbach commented on September 13, 2024

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)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.