<p dir="ltr">If you troll through code reviews where this was brought up, William proposed possibly using a common short name. So</p>
<p dir="ltr">import (<br>
gc "<a href="http://launchpad.net/gocheck">launchpad.net/gocheck</a>"<br>
jc "<a href="http://launchpad.net/juju-core/testing/checkers">launchpad.net/juju-core/testing/checkers</a>"<br>
)</p>
<p dir="ltr">That helps with the typing and stuttering, gives us namespaced imports, and we can use it consistently across the codebase.</p>
<p dir="ltr">These imports will be use a lot, (50% of lines in test suites will have one of them). To me it seems a reasonable compromise.</p>
<p dir="ltr">To be fair, I'm ok with import . in the test suite (never in actual code) given how much it is referenced. However I do like namespacing as it gives an easier way to figure out where this symbol comes from.</p>
<p dir="ltr">John<br>
=:-></p>
<div class="gmail_quote">On Jun 28, 2013 6:08 AM, "David Cheney" <<a href="mailto:david.cheney@canonical.com">david.cheney@canonical.com</a>> wrote:<br type="attribution"><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<div dir="ltr"><br><div class="gmail_extra"><div class="gmail_quote"><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
If we are forced to import checkers "normally", then we should do the same for<br>
gocheck also.<br>
<div><div><br></div></div></blockquote><div><br></div><div>I have no objection to that, based on the reasons outlined above. </div></div></div></div>
<br>--<br>
Juju-dev mailing list<br>
<a href="mailto:Juju-dev@lists.ubuntu.com">Juju-dev@lists.ubuntu.com</a><br>
Modify settings or unsubscribe at: <a href="https://lists.ubuntu.com/mailman/listinfo/juju-dev" target="_blank">https://lists.ubuntu.com/mailman/listinfo/juju-dev</a><br>
<br></blockquote></div>