Giter VIP home page Giter VIP logo

Comments (4)

ToBeReplaced avatar ToBeReplaced commented on August 18, 2024

Obviously that's not quite right... it would need to be a macro to disappear on compilation, but that's the general idea. I'd be happy to work on it if this functionality is desirable.

Also, do we still need to return a list for each key? The short-circuiting means only one error is returned for each key.

from bouncer.

ToBeReplaced avatar ToBeReplaced commented on August 18, 2024

And now I think this is probably a bad idea. Assertion methods should return nil (as this does), but then it is not suitable for use in a pre/post conditions. This would just be a utility method to stick in code during debugging, but then the needs are just as easily met by (assert (or (valid? args) (pr-str args)). I'm interested in feedback.

from bouncer.

theleoborges avatar theleoborges commented on August 18, 2024

Sorry about the delay. I'll have a think about this and come back to you.

Regarding returning lists, that's there for backwards compatibility - the short-circuiting mechanism hasn't always been there.

from bouncer.

theleoborges avatar theleoborges commented on August 18, 2024

Hi @ToBeReplaced ,

I think this feature should probably be left out of the core functionality and into the user code.

It seems to be mostly concerned with control flow and error presentation. For that reason, I'm closing this issues.

Feel free to re-open it if you think you have better arguments as to why this should be in the core lib.

Thanks

from bouncer.

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.