Commit Graph
1325 Commits
Author SHA1 Message Date
José Valim f09453440a Fix typo 2013-05-06 16:04:04 -06:00
José Valim 5a9cb7970b Another attempt at fixing the build on R15 2013-05-06 15:52:14 -06:00
José Valim 78ce20742d Use the macro to automatically transform into R15 call 2013-05-06 15:25:57 -06:00
José Valim 45ad425793 Improve representation of floats and integers, closes #1021 2013-05-06 15:18:48 -06:00
José Valim 1d2b4de7dd Add Dict.fetch 2013-05-06 13:31:58 -06:00
José Valim a93264be81 Private on_load functions should not trigger unused warning 2013-05-06 11:31:05 -06:00
José Valim cbe82e0912 Add __DIR__, closes #1019 2013-05-06 11:03:37 -06:00
José Valim ddb87a96ca Private functions used by private macros no longer emit an unused warning, closes #885 2013-05-05 21:59:40 -06:00
José Valim c53314dfc4 Ensure lexical scopes are not password forward by accident 2013-05-05 20:28:59 -06:00
José Valim 90093bd4e2 Support --cookie, --hidden, Node.get_cookie and Node.set_cookie, closes #910 2013-05-05 12:34:15 -06:00
José Valim a8ab6b5a2a Deprecate List.member?/2 in favor of Enum.member?/2 2013-05-05 10:10:03 -06:00
José Valim 5841f6849b Deprecate assert inlist in favor of assert in 2013-05-05 09:52:00 -06:00
José Valim 7d1a439e29 Keyword.keyword? should work with any atom as key
Closes #1011
2013-05-05 09:34:03 -06:00
José Valim 4b65fa1601 Merge pull request #1013 from ericmj/enumuniq
Add Enum.uniq/2
2013-05-05 08:21:09 -07:00
Eric Meadows-Jonsson 38539faaf4 Add Enum.uniq/2 2013-05-05 17:16:57 +02:00
José Valim 1019879bd0 Improve previous clause does not match warning
We have redefined the warning to say:

  "trying to override previously defined function NAME/ARITY"

We have also relaxed the rules that causes the warning to
emitted. For example, if any kind of meta-programming or
unquoting is detected in the function definition, we skip
the warning altogether.

Closes #934.
2013-05-04 14:59:15 -06:00
José Valim c14ee51d15 Refactor elixir_quote to work on Elixir expressions
This allows us to re-use the code from Macro.escape,
reducing the duplication, and gives us more visibility
into the transformation process.
2013-05-04 14:31:58 -06:00
José Valim a0787fb4bf Merge pull request #1009 from devinus/liberate-in
Liberate `in`, fixes #817
2013-05-03 14:26:40 -07:00
Devin Torres 901fedf266 Liberate in, fixes #817 2013-05-03 16:12:30 -05:00
José Valim c1c4d7571f Merge pull request #1008 from devinus/expanded-enum-protocol
Add Enum.empty? and Enum.member? to the Enum.Iterator protocol, fixes #804
2013-05-03 13:25:43 -07:00
Devin Torres 2f981b914d Add Enum.empty? and Enum.member? to the Enum.Iterator protocol, fixes #804 2013-05-03 14:29:57 -05:00
José Valim 4c6dbcf719 Ensure s and t helpers work with code compiled via c 2013-05-03 12:46:36 -06:00
José Valim 33367e4224 Merge pull request #1006 from alco/kernel-doc-clarifications
Kernel doc clarifications
2013-05-03 09:55:35 -07:00
Alexei Sholik 82e597e31e unless argument clarification 2013-05-03 19:50:02 +03:00
Alexei Sholik e4fd9fd4c1 Fix doctests for unless 2013-05-03 19:50:02 +03:00
Alexei Sholik 66756e2686 Replace "execute" with "evaluate" for consistency 2013-05-03 19:50:02 +03:00
Alexei Sholik b59888a6b7 x in "x in [1,2,3]" is evaluated only once 2013-05-03 19:49:41 +03:00
José Valim 0af35cd011 Merge pull request #1007 from ericmj/is_record
Evaluate first argument in is_record once
2013-05-03 09:39:05 -07:00
Eric Meadows-Jonsson 5c96708ce5 Evaluate first argument in is_record once 2013-05-03 16:43:06 +02:00
Alexei Sholik e33c31e4ee Fix "evalute" typos 2013-05-03 15:34:05 +03:00
Alexei Sholik 5c58956812 "executes" -> "evaluates and returns" 2013-05-03 15:34:05 +03:00
Alexei Sholik 88d674b0b3 Better explanation for XOR 2013-05-03 15:34:05 +03:00
Alexei Sholik 44ec3705f3 Clarify on the return value of Enum.sort 2013-05-03 15:30:42 +03:00
Yuki Ito 83c257937d Implement Enum.min/1 and Enum.min/2
Signed-off-by: José Valim <jose.valim@plataformatec.com.br>
2013-05-02 12:03:56 -07:00
Yuki Ito 43f8448623 Implement Enum.max/1 and Enum.max/2
Signed-off-by: José Valim <jose.valim@plataformatec.com.br>
2013-05-02 12:03:56 -07:00
Yuki Ito 3ddf8edc93 Add test for SyntaxError in Kernel.CLI 2013-05-02 16:27:44 +09:00
Yuki Ito 644dd0f4fb Print Exception in Kernel.CLI.run on standard_out. 2013-05-02 16:27:44 +09:00
Yuki Ito 475bdea0bb Encode Kernel.CLI.main argv in unicode. 2013-05-02 16:27:25 +09:00
José Valim 6bf1d2b84d Merge pull request #998 from ericmj/inspect
Remove custom dispatch to records in Binary.Inspect.Tuple
2013-05-01 12:42:58 -07:00
Eric Meadows-Jonsson ee0643c17c Remove custom dispatch to records in Binary.Inspect.Tuple 2013-05-01 05:17:55 -07:00
José Valim 16e18240c6 Remove special case for implicit splicing inside quote 2013-05-01 00:29:40 -07:00
José Valim f484c9960f Add a test for inline keyword blocks 2013-04-30 23:34:24 -07:00
Bryan Summersett 3f7dda69fb Fixing typo in docstring for List.keyfind 2013-04-30 19:22:03 -07:00
José Valim 35abb1d7ef Ensure we don't splice keyword args unecessarily, closes #989 2013-04-30 15:23:50 -07:00
José Valim 61727e5c5d Ensure do/else|*/end are inlinable, closes #966 2013-04-30 14:47:14 -07:00
José Valim f791bd117c Properly encode unicode binary chars, closes #961 2013-04-30 14:34:46 -07:00
José Valim 034cb18af8 Ensure IEx won't crash on bad error messages and invalid stacktraceqs, closes #974 2013-04-30 12:50:39 -07:00
Yurii Rashkovskii 1080e290a0 Remove unused variable warning in Enum 2013-04-29 09:54:05 -07:00
meh 028421ffea Implement Enum.member? 2013-04-29 17:12:44 +02:00
José Valim cebbbd5102 Remove short paths on Enum
They basically cost one local function call and
are rarely used (just when both iterators are empty)
2013-04-29 07:51:00 -07:00