Hey all,

What is the general consensus on parameter validation in Juju? As a general
practice, I always like to see code that validates parameters passed into
methods so that it fails fast, and gives future developers a contract to
work off of.

Just yesterday I experienced a nil-reference panic which occurred after a
lot of heavy operations. Parameter validation would have kicked me out much
higher in the stack and given me some indication of what was wrong.

Always interested in discussion :)

-
Katherine
-- 
Juju-dev mailing list
Juju-dev@lists.ubuntu.com
Modify settings or unsubscribe at: 
https://lists.ubuntu.com/mailman/listinfo/juju-dev

Reply via email to