For #2, see https://github.com/JuliaLang/julia/pull/6176
--Tim On Monday, July 07, 2014 09:53:22 AM Sid wrote: > 1) Is there a way to disable assertions in julia (like an optimize option)? > > 2) Something I like to do in C/C++ is have a macro to print a message which > includes the file and the line number where the macro was called via the > variables __FILE__ and __LINE__. I can then smatter print statements > throughout the code while debugging and I don't have to manually enter a > unique message for every line. > If it doesn't exist, could something like that be added? It would also > be useful if such a print statement could be disabled in optimization mode > (perhaps a predefined variable can record whether the debug or the > optimization mode is being used?)
