Sometimes it would be very nice to be able to have the right side of => be the result of it's evaluation. E.g.
(let[user(new-user)]
(get-user (:id user)) => (dissoc user :password)
Otherwise I have to write something like
(let[user(new-user)
result (dissoc user :password)]
(get-user (:id user)) => result
IMO the first looks much better but it seems this is not possible. Is there a way around this? Is it something that could be included in future versions of Midje?
Although this example is somewhat basic, with slightly more complex tests, especially when using provided (which seems to have the same restriction), this can make things very messy...