Re: when to use io! macro?

2010-12-04 Thread Baishampayan Ghose
I've recently discovered the io! macro.  Is this something to try to use all the time.. or only in certain situations? It's useful when you are exposing some sort of an API (internal external) and want to prohibit the use of certain functions inside transactions. Regards, BG -- Baishampayan

Re: when to use io! macro?

2010-12-03 Thread ka
This is a good question and I'm not sure of the right answer or if there is one. Personally, if I were exposing an API I would use the io! macro for sure. Even otherwise its a good convention to follow. On Nov 30, 9:06 am, Alex Baranosky alexander.barano...@gmail.com wrote: Hi guys, I've

Re: when to use io! macro?

2010-12-03 Thread Sunil S Nandihalli
It gives a convenience macro which checks if there is a transaction running when the following code block is called. The idea is that since the code in a transaction could be called a multiple times, you should not do things like sending things on to the network or writing to a file during a

Re: when to use io! macro?

2010-12-03 Thread Sunil S Nandihalli
What I said is purely from reading the documentation .. I have never ever used it. Take it with a pinch of salt! On Sat, Dec 4, 2010 at 8:40 AM, Sunil S Nandihalli sunil.nandiha...@gmail.com wrote: It gives a convenience macro which checks if there is a transaction running when the following

when to use io! macro?

2010-11-29 Thread Alex Baranosky
Hi guys, I've recently discovered the io! macro. Is this something to try to use all the time.. or only in certain situations? Alex -- You received this message because you are subscribed to the Google Groups Clojure group. To post to this group, send email to clojure@googlegroups.com Note