Christopher Allan Webber 774aad2ca8 defmain macro; handles the whole if __name__ == __main__ / main function dance
Example:

  (defmain [&rest args]
    (print "now we're having a fun time!")
    (print args))

Which outputs:

  $ hy test.hy
  now we're having a fun time!
  (['test.hy'],)

Includes documentation and tests.
2014-04-10 13:58:38 -05:00
..
2014-01-25 21:01:16 +02:00
2013-03-12 22:53:45 -04:00
2014-02-15 19:22:53 +02:00
2014-01-13 20:24:12 -05:00
2014-01-16 03:54:44 +02:00
2014-01-25 21:01:16 +02:00
2013-03-12 22:53:45 -04:00
2014-04-09 20:10:31 +03:00