Coder Social home page Coder Social logo

Comments (7)

GoogleCodeExporter avatar GoogleCodeExporter commented on September 23, 2024
Throwing specific exceptions, will aid users. 

For example: instead of "Duplicate key." (Collection.add), specify the 
duplicate key,
like: "Key %1 is duplicate".

Original comment by [email protected] on 9 Jun 2007 at 7:08

from base2.

GoogleCodeExporter avatar GoogleCodeExporter commented on September 23, 2024
I'm assigning this to you now that you have commit rights. ;-)

Original comment by [email protected] on 10 Jul 2007 at 2:56

  • Changed state: Accepted

from base2.

GoogleCodeExporter avatar GoogleCodeExporter commented on September 23, 2024

Original comment by [email protected] on 14 Jul 2007 at 7:06

  • Added labels: Browser-All

from base2.

GoogleCodeExporter avatar GoogleCodeExporter commented on September 23, 2024

Original comment by [email protected] on 14 Jul 2007 at 10:03

  • Added labels: Module-All

from base2.

GoogleCodeExporter avatar GoogleCodeExporter commented on September 23, 2024
Can you provide some more examples of the kinds of places that I should put 
assertions?

Original comment by [email protected] on 23 Jul 2007 at 9:05

from base2.

GoogleCodeExporter avatar GoogleCodeExporter commented on September 23, 2024
I have to think about this (I can't think of a concrete example).

But when creating an object without enough arguments, fire-fox gives you very 
scary exceptions. And because 
of that, checking the arguments is not the first thing someone (at least 
myself) would check first.

Original comment by [email protected] on 23 Jul 2007 at 5:15

from base2.

GoogleCodeExporter avatar GoogleCodeExporter commented on September 23, 2024
I've decided not to add more exceptions. Checking arguments and throwing 
exceptions
is expensive in JavaScript. I will instead create a plugin that does more 
ruthless
validation.

Original comment by [email protected] on 14 Sep 2007 at 7:23

  • Changed state: WontFix

from base2.

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.