Fork me on GitHub
#beginners
<
2021-04-22
>
Kevin00:04:34

I see function names like put! or <! etc. What does the "!" exclamation mark mean? And when should I name my own functions with this character appended?

seancorfield01:04:45

core.async has its own peculiarities around those functions too — the single ! means non-blocking (must be used inside a go block/loop) and the double !! means blocking.

NoahTheDuke02:04:08

in a macro, i have a let block where i put some expressions in a map. within the returned quasi-quote expression, i want to fetch one of those expressions from the map without resolving it, and then resolve it later. is that possible?

hiredman02:04:22

That doesn't parse for me

hiredman02:04:00

Something to keep in mind is macros usually generate code that does things, they don't do things

NoahTheDuke03:04:28

let me think on how best to reword this, then. the solution i've found tonight is to wrap the expressions in a function, and then call that function when i need it, but idk if that's the best method

dpsutton03:04:43

What are you trying to do?