Commit Graph
22 Commits
Author SHA1 Message Date
meh ba967a0834 Split @protocol into @protocol and @for and add __impl__(:for) 2013-07-23 11:41:08 +02:00
José Valim a46b78a353 Ensure __impl__ follows the same convention as other dynamically generated info functions 2013-07-17 09:00:27 +02:00
meh 6031c27aa1 Add @protocol attribute to defimpl 2013-07-17 08:42:48 +02:00
Rafael Mendonça França 7cdc25538e Uniform use of whitespace after commas on codebase
This make easier to read and also follow some standard in the code
2013-06-15 16:52:48 -03:00
Jonathan J Hunt 636da42f2a Don't ignore nil during aliasing. Attempt to fix #1159 2013-05-31 15:58:15 -07:00
José Valim cbe82e0912 Add __DIR__, closes #1019 2013-05-06 11:03:37 -06:00
Kim Shrier ced13c159f Change references or invocations of Process.self to Kernel.self 2013-02-09 15:41:09 -07:00
José Valim c4421078b6 Allow protocol definitions nested inside modules 2013-01-08 10:33:54 +01:00
alexrp c9908a23dd The pipeline operator is now '|>'.
Fixes #718.
2013-01-07 23:38:55 +01:00
José Valim 4644d7a607 Do not rely on the third arg of catch clauses
This is an undocumented Erlang feature and it
must not be part of Elixir public API.
2012-12-31 16:23:24 +01:00
José Valim bf14e4b771 Discard spurious cons list from stacktrace 2012-12-31 15:14:58 +01:00
Yurii Rashkovskii 0db1f7279b Change function type specification syntax (WIP)
Signed-off-by: José Valim <jose.valim@plataformatec.com.br>
2012-11-29 13:34:06 +01:00
José Valim 4fdec2c780 Only define types in protocols and records if one was not defined yet 2012-10-30 11:42:07 +01:00
José Valim 591b95bfb9 Protocols should define a @callback implementation 2012-10-29 01:38:37 +01:00
Yurii Rashkovskii 64bdb7a086 Add support for defining multiple protocol implementations in one go
defimpl SomeProtocol, for: [Atom, Number, List] do
    ...
   end
2012-10-12 14:19:17 -07:00
José Valim ee69cb4f74 Avoid false negatives in protocol dispatch, closes #503 2012-10-08 16:00:27 +02:00
José Valim c63a07f928 Now we employ consistently zero-based indexes, closes #459 2012-09-10 10:39:21 +02:00
José Valim 68828d2b49 Code.require_file and Code.load_file now expect the full name as argument 2012-08-21 11:21:21 -03:00
José Valim e28d19d031 Optimize protocols, improve documentation signature 2012-08-07 19:34:31 -03:00
José Valim fea9455eb7 Add self() back since it is allowed in guard clauses 2012-07-17 13:49:34 +02:00
José Valim 2c396b9cc1 Make the default for ExUnit case to be sync 2012-07-16 15:29:28 +02:00
José Valim d5031b6347 Move all code to erlang style apps 2012-07-05 20:20:16 +02:00