Created
November 14, 2013 23:31
-
-
Save travis/7476327 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| (go | |
| (try | |
| (let [posting-ch (parse/get Posting "xWMyZ4YEGZ") | |
| comments-ch (parse/find (doto (Query. Comment) | |
| (.equalTo "posting" posting-pointer))) | |
| posting (<? posting-ch) | |
| comments (<? comments-ch)] | |
| ;; now we can do something | |
| ) | |
| (catch js/Error e | |
| ;; and we handle errors in one place | |
| ))) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment