Have code run conditionally on load() vs. command line #572
Closed
Description
opened on Mar 12, 2012
To make interactive testing of Julia scripts easier and improve the ability to reuse components, it would be nice if there were an equivalent to Python's:
if __name__ == "__main__":
#things
or Ruby's
if $0 == __FILE__
# things
end
Activity