José Valim
b335b1663d
Rename Binary.Inspect -> Inspect and Wadler -> Inspect.Algebra
2013-07-05 22:15:16 +02:00
José Valim
f69ecfe8aa
Make Wadler API conform with Elixir API and update doctests to actually run
2013-07-05 20:29:15 +02:00
José Valim
10a456823c
Do not enable pretty by default
2013-07-05 19:27:55 +02:00
José Valim
a26d4cf0cd
Merge remote-tracking branch 'brunoro/master' into jv-pretty-printing
2013-07-05 19:27:37 +02:00
José Valim
a6f8e178c0
Consistently allow empty expressions on both side of operators
2013-07-04 20:29:39 +02:00
José Valim
ebe522ec50
Tighten up the grammar rules regarding parentheses omission
...
Prior to this commit, Elixir allowed too many ambiguous calls
by ommitting the parentheses:
do_something 1, is_list [], 3
[1, is_atom :foo, 3]
Both cases above would lead to a compilation error, as an attempt
to call is_list/2 and is_atom/2 would happen. Those examples will
now raise a syntax error, pointing to the ambiguous location.
We have disallowed such examples throughout the language with
the exception of one argument calls:
assert is_list []
Examples as above are extremely frequent and were kept as is.
2013-07-04 18:48:55 +02:00
José Valim
6d491325d5
Update and remove out of date erl tests
2013-07-04 11:40:00 +02:00
José Valim
f697ff4160
Ensure HashDict can be serialized into attribute, closes #1368
2013-07-04 11:35:14 +02:00
José Valim
4ae58d3bf4
Do not try to parse arguments for undefined functions
2013-07-04 11:16:14 +02:00
José Valim
15c1a9891c
Implement bindings in Elixir
2013-07-04 10:18:46 +02:00
Gustavo Brunoro
e969a330d5
tests use tuples instead of recordp macros
...
* recordp builder/accessor macros aren't accessible on test cases.
2013-07-03 20:28:30 -03:00
Gustavo Brunoro
0f4598fca0
using defrecordp for all records on wadler.ex
...
* some tests still need to be refactored.
2013-07-03 20:03:04 -03:00
Gustavo Brunoro
cb5bb2e548
Merge branch 'master' of https://github.com/elixir-lang/elixir
2013-07-03 18:54:33 -03:00
José Valim
6b82967dd6
Improve error report on unhandled ->
2013-07-03 21:29:35 +02:00
José Valim
628d1b630e
Fix surprising behaviour with Module.register_attribute/3 that caused attributes to be persisted unecessarily
2013-07-02 10:31:32 +02:00
José Valim
e49a00d3cb
Tidy up Record and access docs
2013-07-01 21:19:09 +02:00
José Valim
1da36c5b04
Re-organize records tests
2013-07-01 21:10:13 +02:00
José Valim
26eafd1a4c
Remove the URI lookup mechanism in favor of application env
2013-07-01 20:25:01 +02:00
José Valim
cdd8e5862d
Rename the ExUnit option from debug to trace
2013-07-01 16:41:34 +02:00
José Valim
46e898e413
Add mix test --debug
2013-07-01 15:02:57 +02:00
José Valim
3bac4ddec6
Support --debug on internal tests which are not run through mix
2013-07-01 14:20:33 +02:00
José Valim
664d1ec0d3
Decide on IO.stream and unify read/readline API
2013-06-30 19:21:39 +02:00
José Valim
8ca28496e4
Add Stream.reject/2 and Stream.(drop|take)*/2
2013-06-30 19:21:39 +02:00
José Valim
cf98f9b975
Deprecate File.*iterator! in favor of File.*lines_stream!
2013-06-30 19:21:39 +02:00
José Valim
35edf833b6
Add Stream.cycle/1
2013-06-30 19:21:39 +02:00
José Valim
1a343b01d6
Add Stream.with_index/1 and Enum.with_index/1
2013-06-30 19:21:39 +02:00
José Valim
bc76627feb
Add Streams
2013-06-30 19:21:39 +02:00
José Valim
5822cd153f
Do not automatically nest defrecordp argument
...
This may lead people think that an alias is defined
and that is not the case.
2013-06-30 16:25:08 +02:00
José Valim
65c624ef55
Merge pull request #1339 from yrashk/defrecordp-3
...
defrecordp/3
2013-06-30 07:13:43 -07:00
José Valim
6c56bb8682
Put doc tests in alphabetical order
2013-06-30 15:52:10 +02:00
José Valim
1f8c8f5292
Merge pull request #1241 from josephwilk/sets
...
Add Sets to Elixir
2013-06-30 06:43:36 -07:00
José Valim
03323b9bfa
Macro.escape should also escape nested tuples, closes #1344
2013-06-30 15:30:44 +02:00
Joseph Wilk
d6c0533395
We don't need the HashSet, its already one.
2013-06-30 13:44:19 +02:00
José Valim
e548807605
Do not downcase host and inline common lookups
2013-06-30 10:57:11 +02:00
Yurii Rashkovskii
c20ee8f7e9
Flip the order of first two arguments in defrecordp/3
2013-06-30 08:36:24 +02:00
Jason Larsen
f1baed6434
Add test for String.duplicate with n of 0
2013-06-29 20:24:50 -06:00
Yurii Rashkovskii
1b043c36bb
defrecordp/3 should nest aliases under the parent module
2013-06-30 00:56:25 +02:00
Yurii Rashkovskii
cda2986a63
Implement defrecordp/3 that enables specifying a custom record tag
2013-06-30 00:35:24 +02:00
Yurii Rashkovskii
83c964ae46
Fix defrecordp definition of the <record>_t type
...
It should use the correct tag in the tuple to be correct.
2013-06-29 23:58:16 +02:00
Joseph Wilk
1b2d8bb915
Contraction trie after filtering if needed.
2013-06-29 23:21:03 +02:00
Joseph Wilk
34f0f93e8f
Move HashSet examples over to Set.
2013-06-29 23:21:02 +02:00
josephwilk
6e9b8fb454
Adding Set behaviour
...
* Pushing some HashSet tests into the Set tests.
2013-06-29 23:21:02 +02:00
José Valim
e8bd90a1c8
Speed up HashSet.member? and HashSet.intersection
2013-06-29 23:21:02 +02:00
josephwilk
eb813f71d6
Support set_filter with tries.
...
Set intersection for tries now uses set_filter.
2013-06-29 23:21:01 +02:00
josephwilk
ce683fc10e
Refactor: Add filter.
...
Use filter for both intersection and difference.
2013-06-29 23:21:01 +02:00
Joseph Wilk
fd7e038927
Set renamed to HashSet.
...
Separate Set from the implementation strategy.
2013-06-29 23:21:01 +02:00
Joseph Wilk
01230d68c7
Adding disjoint? for sets
2013-06-29 23:21:01 +02:00
Joseph Wilk
f726b6bbdf
Adding test subset?
2013-06-29 23:21:01 +02:00
Joseph Wilk
00e9098d19
Adding set equal?
2013-06-29 23:21:00 +02:00
Joseph Wilk
1be0a5329b
formatting tweaks
2013-06-29 23:21:00 +02:00