tag:blogger.com,1999:blog-12467669.post401436077584822924..comments2023-04-29T07:23:25.825-04:00Comments on Jay Fields' Thoughts: Clojure: Conditionally ImportingJayhttp://www.blogger.com/profile/14491442812573747680noreply@blogger.comBlogger6125tag:blogger.com,1999:blog-12467669.post-34714263844878321932012-05-08T07:27:42.257-04:002012-05-08T07:27:42.257-04:00Unknown, I've always import the short name, an...Unknown, I've always import the short name, and just assumed that you'll still need to import if you use the long name. Still you can switch to using short names in the example and the idea still holds true. Thanks for the tip.<br /><br />Cheers, JayJayhttps://www.blogger.com/profile/14491442812573747680noreply@blogger.comtag:blogger.com,1999:blog-12467669.post-68828268809195197822012-05-08T00:39:10.125-04:002012-05-08T00:39:10.125-04:00Why are you importing at all? You don't use th...Why are you importing at all? You don't use the short name, and the long one is available whether you import or not. Using the macro to avoid referring to the joda classes is fine, but the import isn't buying you anything as far as I can tell (and might conceivably be mucking up the caller's namespace, but probably isn't).Alan Malloyhttps://www.blogger.com/profile/11347579423754083087noreply@blogger.comtag:blogger.com,1999:blog-12467669.post-7753556819317697882012-05-07T21:42:07.910-04:002012-05-07T21:42:07.910-04:00Cool. thanks Jason. I updated the post...Cool. thanks Jason. I updated the post...Jayhttps://www.blogger.com/profile/14491442812573747680noreply@blogger.comtag:blogger.com,1999:blog-12467669.post-31085748838300492822012-05-07T21:19:13.384-04:002012-05-07T21:19:13.384-04:00Nice!
The link it the post points to the master b...Nice!<br /><br />The link it the post points to the master branch, and I suspect master will change over time. Here's a <a href="https://github.com/jaycfields/expectations/blob/f2a8687/src/clojure/expectations/scenarios.clj#L81-L86" rel="nofollow">link to the code as it exists today</a> (i.e., as of commit f2a8687).<br /><br />Hopefully this will be helpful to people reading this post in the future, after the master branch has moved on and lines 81-86 no longer point to the code in question.Jason Rudolphhttps://www.blogger.com/profile/17651409904762470492noreply@blogger.comtag:blogger.com,1999:blog-12467669.post-91891834557887390052012-05-07T20:57:49.745-04:002012-05-07T20:57:49.745-04:00Hi Sean,
Good to hear. I'm using it at DRW as ...Hi Sean,<br />Good to hear. I'm using it at DRW as well, so it should be all good. Though, it's possible that I've missed a corner case. Let me know if you find any issues.<br /><br />Cheers, JayJayhttps://www.blogger.com/profile/14491442812573747680noreply@blogger.comtag:blogger.com,1999:blog-12467669.post-78070858065791352142012-05-07T20:45:36.672-04:002012-05-07T20:45:36.672-04:00Oh that's very nice! I can use that immediatel...Oh that's very nice! I can use that immediately in my tests at World Singles to simplify how we do a few scenarios!Anonymoushttps://www.blogger.com/profile/15391602120540580436noreply@blogger.com