JavaLaurence Posted March 25, 2013 at 07:00 PM Share Posted March 25, 2013 at 07:00 PM Currently, the TF implementation lets us instantiate a Bricklet object for a Bricklet which physically doesn't exist, either by passing a wrong UID, or by passing the "right" UID, but not having the Bricklet physically connected. In either case, would it not be preferable to fail-early by having the constructor blow up with throw new IllegalArgumentException("Bricklet not present: " + uid); ? This suggestion does not require an API change, only an implementation change (and updated docs). Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.