Commit Graph
1809 Commits
Author SHA1 Message Date
José Valim bde91c325c Ensure Stream.take/2 halts execution 2013-07-07 22:50:49 +02:00
José Valim fc505f8a82 Replace ?is_new_atom macro by ?is_atom_start 2013-07-07 21:14:36 +02:00
Yurii Rashkovskii dd6fb4acc2 Minor doc fix 2013-07-07 10:04:09 -07:00
José Valim b830485541 Ensure Elixir can run on directories with :, closes #1375 2013-07-07 10:00:46 +02:00
John Warwick c11d50e451 Fixed doc typos in the Inspect protocol 2013-07-06 23:33:10 -04:00
John Warwick 64e6037986 Fixed doc typos in Inspect.Algebra 2013-07-06 23:17:35 -04:00
José Valim 8a9927ea1b Optimize Inspect implementation 2013-07-06 16:17:09 +02:00
Yurii Rashkovskii 889de92187 Doc typo fix 2013-07-06 07:00:05 -07:00
José Valim 7ad7847596 Rearrange how ambiguous ops are handled, closes #1378 2013-07-06 12:32:22 +02:00
José Valim 9dcfc53f60 Merge pull request #1382 from jwarwick/think_different
Fixed doc typos in Path and Kernel
2013-07-06 02:50:03 -07:00
José Valim 26f9ce121a Merge pull request #1381 from jwarwick/set_docs
Fixed typos in Set module docs
2013-07-06 02:49:47 -07:00
José Valim 0c557d2766 Document the Inspect protocol and Inspect.Algebra 2013-07-06 11:43:59 +02:00
José Valim e13a516715 Get rid of Inspect.Utils 2013-07-06 11:10:12 +02:00
José Valim accf7dac82 Change inspect formatting to use spaces in between , 2013-07-06 10:07:54 +02:00
John Warwick b3a65eaca1 Fixing typos in Kernel module docs 2013-07-05 23:57:22 -04:00
John Warwick 3e29d9fa2e Fixing typos in Path module docs 2013-07-05 23:41:19 -04:00
John Warwick 0edf1882ff Fixed typos in Set module docs 2013-07-05 23:33:04 -04:00
José Valim 35d019559d Remove the need for Inspect.Utils.return and Inspect.Algebra.text 2013-07-05 23:19:39 +02:00
José Valim 7048236988 Use a Inspect.Opts record instead of passing opts around 2013-07-05 22:37:47 +02:00
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 650648a687 Clean up ExUnit.Case 2013-07-04 10:57:31 +02:00
José Valim b561c93db2 Clarify docs for Macro.expand_all/2 2013-07-04 10:30:13 +02:00
José Valim 15c1a9891c Implement bindings in Elixir 2013-07-04 10:18:46 +02:00
Gustavo Brunoro 10697628f9 to_binary always equals to 2. 2013-07-03 22:25:18 -03:00
Gustavo Brunoro 89da6e032d adding documentation for Binary.Inspect.Utils 2013-07-03 22:19:10 -03: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 91be13d128 Optimize HashDict to store pairs in a cons cell reducing storage per key by half 2013-07-03 15:05:08 +02:00
José Valim 62527cae9c Small clean up on parser file 2013-07-03 15:05:08 +02:00
John Warwick 3d208e219d Added doctest examples for Regex.split 2013-07-02 22:24:02 -04:00
John Warwick f8fd11bef0 Fixing doc typos in Regex module 2013-07-02 22:19:11 -04:00
John Warwick 9703c9968b More doctests for Regex.captures and fixed return type doc 2013-07-02 22:01:56 -04:00
AlbertMoscow 3ab74433c0 Fixed typos in Kernel
This line of code is referenced from the blog post by the following link: https://peepcode.com/blog/2013/elixir-is-for-programmers
2013-07-02 10:55:53 -07:00
Justin Jaffray a6db102d05 Fixed typos in Kernel
Also reworded some docstrings to make more sense
2013-07-02 12:06:08 -04: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 fbd7c34211 Merge pull request #1356 from jwarwick/regex_typos
Fixed typos in Regex module docs
2013-07-02 00:07:46 -07:00
José Valim 25f5546d6f Merge pull request #1355 from jwarwick/kernel_record_typos
Fixed doc typos in Kernel.defrecord and Kernel.defrecordp
2013-07-02 00:06:59 -07:00
John Warwick 4a0b1aa384 Fixed typos in Regex module docs 2013-07-01 22:59:20 -04:00
John Warwick ee1b87089d Fixed doc typos for Kernel.defrecord and Kernel.defrecordp 2013-07-01 22:36:33 -04:00
John Warwick 074db53fbb Fixed typo in Record.update ArgumentError message 2013-07-01 22:11:41 -04:00