hugsql

achikin 2018-01-08T16:49:51.000012Z

Hi!

achikin 2018-01-08T16:50:09.000013Z

I wonder if nested clojure expressions are allowed. E.g.

admay 2018-01-08T16:50:55.000881Z

How so?

achikin 2018-01-08T16:51:40.000294Z

@achikin uploaded a file: https://clojurians.slack.com/files/U3A7Z18JZ/F8PKKHVB6/-.clj

achikin 2018-01-08T16:52:56.000574Z

I have when inside an if branch.

achikin 2018-01-08T16:55:28.000413Z

When i try the above I get Unexpected eof

admay 2018-01-08T17:08:09.000244Z

Cool, give me a few minutes and I’ll let you know what I come up with!

👍 1
admay 2018-01-08T17:36:26.000505Z

So, I over looked it at first, but you currently have 3 branches to your if statement.

(if bla
    "first bla bla"
    "second bla bla"
    (when bla
        "third bla bla"))

admay 2018-01-08T17:37:06.000143Z

This is valid, but I’m not sure if this is sufficient for your use case.

/*~ (if bla */
bla bla
/*~ (when bla */
bla bla
/*~ ) */
/*~ ) ~*/
If you give me some more details we can work out a suitable bit of code for you