Commit Graph
37 Commits
Author SHA1 Message Date
José Valim f9dd6f66a6 Remove function single do: definition syntax 2012-05-13 17:36:54 +02:00
José Valim e476a5ef0d Stab at new syntax 2012-05-13 15:33:57 +02:00
José Valim e13241a6ec Docs for ExUnit, make records non documented by default 2012-05-08 11:47:03 +02:00
José Valim 96f26c9299 Rename Orddict to Keyword, closes #216. 2012-04-01 16:10:31 +02:00
José Valim d815788c52 Compile files using . and inside __MAIN__ 2012-03-25 18:48:20 +02:00
José Valim 1db7795217 Provide GenServer::Behavior with the default implementation for GenServer callbacks. 2012-02-20 09:38:28 +01:00
José Valim 338643a85d Add Enum.filter_map 2012-02-12 13:16:48 +01:00
José Valim 39b1442ffb Clean up function syntax. 2012-02-06 23:28:48 +01:00
José Valim 41d2a7f87e Revert "Rename tuples { 1, 2, 3 } to %{ 1, 2, 3 } to remove ambiguity."
This reverts commit 20f524dae2.
2012-02-06 22:46:24 +01:00
José Valim 20f524dae2 Rename tuples { 1, 2, 3 } to %{ 1, 2, 3 } to remove ambiguity. 2012-02-06 16:39:55 +01:00
José Valim ee2c03217e Revert "Get rid of defp in favor of data and @visibility :private."
This reverts commit 20e4b3a5f9.
2012-01-20 22:55:03 +01:00
José Valim 20e4b3a5f9 Get rid of defp in favor of data and @visibility :private. 2012-01-20 19:42:23 +01:00
José Valim f4c4ff622a Shortcut data API works. 2012-01-20 18:37:50 +01:00
José Valim eca3bcc5b0 Discourage module nesting, closes #101 2012-01-15 21:06:12 +01:00
José Valim fc961cf40d Simplify try/catch to be more like Erlang's and not require a tuple. 2012-01-11 07:33:44 +01:00
José Valim 2080e054ab module -> defmodule 2012-01-02 11:08:25 +01:00
José Valim b291bc3712 Remove public/private helpers in favor of defp.
We have two main reasons for this:

1) defmacro cannot be private and private/public gave a general
   feeling that we could simply mark macros as private;

2) public/private works poorly with quoting. Imagine a macro that
   wants to define some method as private:

     quote {
       private
       def foo, do: bar
     }

   This call to private would alter all the functions in the target
   module.

In order to solve 2), we would have to either allow private with a block:

    quote {
      private do
        def foo, do: bar
      end
    }

Or use `private(opts)`:

    quote {
      def foo, do: bar
      private foo: 1
    }

However, none of these approaches explicitly solves 1). That's why we decided
to go with a syntax similar to Clojure's `def-`: defp.

    quote {
      defp foo, do: bar
    }

There is no `defmacrop`, which solves 1), and the visibility always apply
only to the current function, solving 2).
2011-12-30 08:16:22 +01:00
José Valim ece7a55ee4 Nest ALL the modules. 2011-12-29 19:16:05 +01:00
José Valim aed94582d1 Refactor a bit record usage in ExUnit. 2011-12-28 22:06:45 +01:00
José Valim 4decbdd644 Refactor sync cases handling. 2011-12-28 21:55:20 +01:00
José Valim 987c46a7aa Attempt to get ExUnit running again. 2011-12-28 12:13:40 +01:00
José Valim bf0e962c70 Clean up old Elixir code. 2011-12-16 20:38:19 +01:00
José Valim fb08001721 Rename Instance -> Behavior. 2011-06-04 19:55:18 +02:00
José Valim 30968d35a3 More cleaning up. 2011-06-04 19:55:17 +02:00
José Valim 807d9dd3e1 Remove {:} and use {} as empty dict. And empty tuple can be retrieved with Tuple.new. 2011-05-30 13:25:29 +02:00
José Valim 093f258a31 Make configure call optional. 2011-04-28 11:55:40 +02:00
José Valim 2cfbb09437 Fix small bug and remove old cache directives. 2011-04-12 12:15:55 +02:00
José Valim 740ad56f6f Remove constructor in favor of initialize. 2011-03-28 10:42:18 +02:00
José Valim fe9c8993c1 Remove protected warnings. 2011-03-23 10:38:56 +01:00
José Valim 56c271e7d7 Small fixes to GenServers 2011-03-21 09:01:41 +01:00
José Valim 9750a8b599 Supervisor starts the code server directly. 2011-03-18 09:43:40 +01:00
José Valim 55ed590bba Extract formatter from ExUnit. 2011-03-17 12:01:18 +01:00
José Valim 57a1a6d241 Use update ivar instead. 2011-03-07 09:03:48 +01:00
José Valim 83988eddaa Simplify a lot GenServer implementation. 2011-03-06 11:38:35 +01:00
José Valim d88374548a Elixir cache is implicit. 2011-03-05 15:10:56 +01:00
José Valim 956310d7e3 Add exunit bin. 2011-03-05 11:09:06 +01:00
José Valim 9ab1bcbcfe Defined test cases are now implicitly detected. 2011-03-05 11:09:06 +01:00