Eric Meadows-Jönsson
d868b4d066
Do not wrap single lists in :__block__
2014-04-27 22:26:14 +02:00
José Valim
32b8371759
Merge pull request #2199 from fishcakez/fix_abstract
...
Fix compiler abstract code
2014-04-27 20:57:52 +02:00
James Fish
29e0fadec1
Fix compiler abstract code
...
Previously the source filename of a module was sometimes a binary, this
change ensures it is always an erlang string.
Previously dialyzer did not know not to auto import bifs as it does not
read the compile options from a beam. This change uses an attribute in
the abstract code rather than a compile option so that dialyzer does not
auto import bifs.
2014-04-27 13:49:35 +01:00
José Valim
c91723b444
Remove deprecated code, enable previous soft deprecations
2014-04-27 13:39:32 +02:00
Lucas Weiblen
e8d7b267b5
Fix typo on MacroTest
2014-04-27 00:44:07 -03:00
José Valim
31c34dc04e
Ensure we only allow horizontal space in heredocs
2014-04-24 20:57:06 +02:00
José Valim
ad8587a853
Revert "Fix cli tests to avoid unix warnings"
...
Reverting in favor of the warning being fixed locally.
This reverts commit 0ddcba788d .
2014-04-24 18:49:11 +02:00
José Valim
0ddcba788d
Fix cli tests to avoid unix warnings
...
When running on unix, we may emit warnings if the filesystem
is not configured to latin1, so we relax the tests assertion
to account for the warnings.
2014-04-24 18:15:41 +02:00
José Valim
55451fdcdc
Make more deprecations soft, update CHANGELOG
2014-04-24 18:12:26 +02:00
José Valim
4df91f14ee
Fix bug in for comprehensions
2014-04-24 11:27:49 +02:00
José Valim
45427c3b33
Fix Elixir tests on Windows, closes #2190
2014-04-24 10:45:25 +02:00
José Valim
665c9b3117
Make iolist_to_binary/iolist_size a soft deprecation
2014-04-24 10:35:28 +02:00
Eric Meadows-Jönsson
c6dc65c418
Fix compiler crash for some map literals
2014-04-22 18:29:54 +02:00
José Valim
ca2ea6c0bd
Inline some map calls
2014-04-22 15:43:13 +02:00
José Valim
38aaeebfbc
Correct Enum.group_by/3 typespec
2014-04-22 15:43:13 +02:00
Eric Meadows-Jönsson
89a6ad3a46
Merge pull request #2185 from alco/string-split_at
...
Add String.split_at
2014-04-22 14:11:35 +02:00
Alexei Sholik
f35dd567a1
Add String.split_at
...
While it is straightforward to split a string given
an offset in bytes from its beginning like this
<<left::[binary, size(offset)], right::binary>> = string
splitting at grapheme boundary or using negative offset
is not so simple. Hence this function.
2014-04-22 15:02:40 +03:00
José Valim
f932937928
No longer support tuples in function_exported?
2014-04-21 20:18:01 +02:00
José Valim
56f15d9f4e
Do not add spaces after { and before }
...
This makes the source code consistent with the result
returned by inspect/2.
2014-04-21 19:06:35 +02:00
José Valim
7ccdb2ab29
Deprecate ListDict and access for lists with non-atom keys
2014-04-21 18:53:35 +02:00
José Valim
c7d96af2de
Fix regression on deprecated functions
2014-04-21 16:36:38 +02:00
José Valim
ec776c7d68
Regexes are no longer unicode by default
...
By making them unicode, it was impossible match on binary streams,
as unicode expects valid unicode strings.
2014-04-21 13:01:15 +02:00
José Valim
ea9b686b28
Emit a warning if running on latin1
2014-04-21 12:15:27 +02:00
José Valim
915b8d60d1
Macro.unpipe/1 now returns the pipe position
2014-04-21 11:38:08 +02:00
José Valim
76bee630a2
Clean up doc tests
2014-04-21 11:26:51 +02:00
José Valim
66214e97b2
Do not set +fnu by default
2014-04-21 11:18:02 +02:00
José Valim
7178b80ad1
Tidy up some final changes regarding regexes and deprecations
2014-04-21 10:33:18 +02:00
Yuki Ito
7b719fdf61
Regex.named_captures/2,3 returns a map of binaries <-> values instead
...
of a keyword
Signed-off-by: José Valim <jose.valim@plataformatec.com.br >
Conflicts:
lib/elixir/lib/regex.ex
2014-04-21 10:33:18 +02:00
José Valim
e8f976a007
:named -> :all_names
2014-04-21 10:33:18 +02:00
Yuki Ito
0a2f184e0e
Deprecate "groups" in Regex
...
* `Regex.groups` -> `Regex.names`
* :groups -> :named on `Regex.scan`
* :groups -> :named on `Regex.run`
Signed-off-by: José Valim <jose.valim@plataformatec.com.br >
Conflicts:
lib/elixir/lib/regex.ex
2014-04-21 10:33:18 +02:00
José Valim
c40a37f677
Remove some deprecated functions and add missing warnings
2014-04-21 10:33:17 +02:00
José Valim
20042a51ba
Merge pull request #1984 from pminten/enumerable-count-doc-improvement
...
Improve Enumerable count/member? docs
2014-04-21 16:01:22 +09:00
José Valim
fc249de987
Update CHANGELOG
2014-04-21 08:56:35 +02:00
José Valim
6624f31472
Merge branch 'jv-char-data'
...
Conflicts:
lib/eex/lib/eex/tokenizer.ex
lib/elixir/lib/file.ex
lib/elixir/lib/kernel.ex
lib/elixir/lib/record/extractor.ex
lib/elixir/lib/string.ex
lib/ex_unit/lib/ex_unit/doc_test.ex
lib/mix/lib/mix/archive.ex
lib/mix/lib/mix/dep/fetcher.ex
lib/mix/lib/mix/dep/umbrella.ex
2014-04-21 08:38:48 +02:00
José Valim
edfb650c94
Properly format and indent test output
2014-04-19 11:31:58 +02:00
José Valim
c012456573
Reject __struct__ field on struct/2
2014-04-19 08:48:31 +02:00
Martin Schürrer
73a76c6f7c
Update example to use Map.put/3, accordingly with the last proposal
...
[Proposal 1](https://gist.github.com/josevalim/9acd0fe43063cbc33aa6 )
has the update operation also put new keys in the map, while the
[2nd proposal](https://gist.github.com/josevalim/b30c881df36801611d13 )
doesn't support this. The docs reflected the first proposal.
2014-04-18 02:43:20 +02:00
Rafael Mendonça França
47c922e571
Merge pull request #2177 from augiedb/patch-1
...
Small grammar fix
2014-04-17 18:27:02 -03:00
Augie De Blieck Jr.
d539d606de
Minor grammar tweak
...
Subject/verb agreement at the top
2014-04-17 15:24:39 -04:00
Augie De Blieck Jr.
bb02b25e49
Small grammar fix
2014-04-17 15:21:53 -04:00
zambal
d1edad39c9
--app argument should be converted to atom
2014-04-16 09:48:40 +02:00
José Valim
74584ad921
s/records/structs in protocols docs
2014-04-15 20:49:03 +02:00
José Valim
d41f39a53a
Add a note about Enum.sort/2 stability, closes #2163
2014-04-12 16:29:10 +02:00
José Valim
44c81ae0ed
Document how ErlangError works, closes #2166
2014-04-12 08:54:09 +02:00
Igor Kapkov
97e70e6de1
change some doc examples to iex style
2014-04-12 08:41:22 +02:00
Dima Aleksandrov
5761460bd6
use map_size guard, add test
2014-04-11 18:50:45 +02:00
Dima Aleksandrov
d881d899a4
fix matching on every map in Enum.into/2
2014-04-11 18:41:58 +02:00
José Valim
166685caad
Automatically define types for structs
2014-04-11 10:00:29 +02:00
José Valim
f60bdb8d5f
Support maps in typespecs
2014-04-11 10:00:29 +02:00
Eric Meadows-Jönsson
c3ef484d14
Fix accidental commented code
2014-04-11 09:40:23 +02:00