-
Notifications
You must be signed in to change notification settings - Fork 20
Passing functions as well as symbols to with-* functions? #20
Comments
How're you able to pull it off? I couldn't make it happen when I implemented it because it would lose the metadata from the var-root. |
So if your with-* functions expect to be called with some kind of If I've missed some subtlety here, please let me know, since I'm not very familiar with the intricacies of Clojures metadata handling. Otherwise, should be a straightforward change. |
Clojure's metadata is extremely tricky to get right when you're passing a var between functions. The |
Ah, good call! I think there might be a way around that using the intern built-in, but I'll have to poke around for it. I should have guessed there'd be more to it, since it hadn't been done yet and seemed like such low-hanging fruit. 😁 |
Give it a shot. I wouldn't mind making that change for |
Alright, I'll probably keep this one on the back-burner for now then. Something to fiddle with in my free (ha!) time. |
Any interest in being able to do the following?
It'd be an easy change to make, and I could do it in a way that would preserve existing behavior. If you think it'd be too confusing, or are just opposed stylistically, I'm fine to leave things as they are.
The text was updated successfully, but these errors were encountered: