Yuki Ito
c6e64aba18
Add tests for warning
2013-05-24 00:35:43 +09:00
Yuki Ito
231d65e879
Fix checking unused local functions and default arguments
2013-05-24 00:34:56 +09:00
José Valim
2c98c0999d
An Elixir module now translates to Elixir.Module instead of Elixir-Module
2013-05-23 14:36:56 +02:00
José Valim
94f9d4e3f6
Enum.Iterator -> Enumerable
2013-05-23 14:36:46 +02:00
José Valim
66476b31d1
Merge pull request #1102 from ericmj/reducers
...
Reducers
2013-05-23 05:25:10 -07:00
Alexei Sholik
7f84211bb3
Fix all "evalute" typos
2013-05-23 00:50:42 +03:00
Eric Meadows-Jonsson
474250e6f4
Update docs for Enum.Iterator and reduce
2013-05-22 21:14:18 +02:00
José Valim
65e67cdc27
Ensure we emit a warning for recursive non used calls
2013-05-22 19:41:03 +02:00
José Valim
6b91e46702
Add missing clause definitions
2013-05-22 19:41:03 +02:00
Eric Meadows-Jonsson
a1ec5f1552
Clean up and fixes in reducer code
2013-05-22 18:43:51 +02:00
Eric Meadows-Jonsson
45485fba59
Remove file open in File.iterator and File.biniterator
2013-05-22 18:03:56 +02:00
Eric Meadows-Jonsson
854942d3ee
Remove iterator references in code
2013-05-22 15:21:29 +02:00
Eric Meadows-Jonsson
3f946d4af0
Use reducers in Enum, File and URI
...
Remove Enum.equal?
Remove File.iterator/2 and File.biniterator/2
2013-05-22 15:07:13 +02:00
Eric Meadows-Jonsson
9318f747f4
Add reduce to Enum.Iterator protocol
2013-05-22 15:02:38 +02:00
Alexei Sholik
ed14ce4bc8
Add --dot-iex command line option to IEx
...
It allows one to override the standard locations where .iex is searched
and also makes it possible to disable .iex loading completely.
2013-05-22 15:57:37 +03:00
Alexei Sholik
c634a5d232
Add :elixir.scope_for_eval/2 convenience function
2013-05-22 15:57:36 +03:00
José Valim
26640e3940
Start v0.9.0.dev work
2013-05-22 14:56:26 +02:00
José Valim
31b4290797
Add IEx processing to Kernel.CLI
2013-05-22 12:53:55 +02:00
José Valim
37054c8226
Deprecate Exception.format_entry in favor of Exception.format_stacktrace_entry
2013-05-22 00:55:46 +02:00
José Valim
054ff457be
Remove Enum.equal?
...
There is a branch work refactoring Enum and Enum.equal?
contains some limitations. We are removing it for now
since it was not officially released yet.
2013-05-21 20:30:19 +02:00
José Valim
d238d50579
Deprecate Code.eval in favor of Code.eval_string, closes #953
2013-05-21 12:57:22 +02:00
José Valim
4bde3c85ed
Remove empty? from the Enum protocol, closes #1097
2013-05-21 12:57:22 +02:00
José Valim
9b0353a747
Improve error messages when there is a space in between function name and parenthesis
2013-05-21 12:57:22 +02:00
Alexei Sholik
245bc09d7b
Fix behavior of Path.expand/2. Improve docstrings
2013-05-21 02:17:23 +03:00
José Valim
8907edca3e
Improve error message for invalid patterns in guards and matches
...
Closes #1092
2013-05-19 21:39:44 +02:00
Yuki Ito
0142587fd2
Fix docs for IO.getn
2013-05-20 04:12:11 +09:00
Yuki Ito
5ec2de4b76
Deprecate IO.getb in favor of IO.getn
2013-05-20 03:29:29 +09:00
José Valim
d9b98a62c8
Check if the module is in the same context before checking if it is open
2013-05-19 19:42:13 +02:00
José Valim
78a0abc08f
Check if we are in the current module context as a fast path
2013-05-19 18:41:08 +02:00
José Valim
0328d867a9
Check if a module is open or not when defining a record
2013-05-19 18:33:39 +02:00
José Valim
05b650f373
Change preference of |> to support constructs like 1..5 |> Enum.to_list
2013-05-19 18:33:14 +02:00
José Valim
b3e8a3d8fe
Improve docs for records
2013-05-19 15:54:33 +02:00
José Valim
021dc541b8
Remove unsupported matching on rescue clause
2013-05-19 15:54:33 +02:00
Alexei Sholik
e96963c4a4
Fix docstring for require_file
2013-05-18 13:25:56 +03:00
José Valim
441c333939
Optimize HashDict.take and HashDict.split, update CHANGELOG
2013-05-17 12:34:11 +02:00
Jake Mitchell
bf356495a4
Use faster HashDict.drop/2, ListDict.take/2 and ListDict.drop/2 implementations
2013-05-17 12:26:19 +02:00
Yew-wei Tan
216019c34f
fix inappropriate doctests for drop/2, take/2, and split/2 functions of Dict module
2013-05-17 19:59:33 +10:00
Yew-wei Tan
4a3e741070
Issue #1069 : Add Dict.drop, Dict.take and Dict.split
2013-05-17 16:04:41 +10:00
José Valim
6589d17527
Deprecate Enum.at! and Dict.get! in favor of Enum.fetch! and Dict.fetch!
...
Previously, `Dict.get!` had a different API than `Dict.get` as
it didn't allow a default argument. Furthermore, having `Dict.fetch`
returning a tuple and `Dict.fetch!` returning an error is more
inline to the bang functions existent in the File module.
2013-05-16 20:49:09 +02:00
José Valim
de1d47f9d5
Add Enum.at/2, Enum.at/3 and Enum.fetch/2
2013-05-16 18:32:01 +02:00
José Valim
1051b61605
Also convert String.to_integer tests to use ===
2013-05-16 18:16:21 +02:00
José Valim
5e0f171655
Merge pull request #1079 from jdeisenberg/string_to_int_float
...
Change == to === in tests for String.to_integer and String.to_float.
2013-05-16 07:02:12 -07:00
J David Eisenberg
521249edfe
Change == to === in tests for String.to_integer and String.to_float.
2013-05-16 05:58:04 -07:00
José Valim
a0544478a6
Merge pull request #1077 from meh/string-slice
...
Make String.slice consistent with Ruby semantics, closes #1034
2013-05-16 05:20:32 -07:00
meh
6d6ec1ea11
Make String.slice consistent with Ruby semantics, closes #1034
2013-05-16 11:56:21 +02:00
Yuki Ito
020c5b0dd2
Fix warning for unused default arguments
2013-05-16 13:58:29 +09:00
José Valim
d8e374df56
Merge pull request #1044 from jdeisenberg/string_to_int_float
...
String.to_integer and String.to_float
2013-05-15 15:59:24 -07:00
José Valim
5d885a97d3
Optimize HashDict.pop
2013-05-15 13:59:02 -06:00
ILYA Khlopotov
eedd68e661
Implementation of Dict.pop (proposal #856 for Dict)
2013-05-15 13:14:25 -06:00
José Valim
c0b9c2545a
Move List.Dict to ListDict
2013-05-15 13:03:40 -06:00