Commit Graph
1766 Commits
Author SHA1 Message Date
John Warwick 3e29d9fa2e Fixing typos in Path module docs 2013-07-05 23:41:19 -04: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
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
John Warwick 60693e48e5 Fixed typos in Record docs 2013-07-01 22:09:24 -04:00
José Valim e49a00d3cb Tidy up Record and access docs 2013-07-01 21:19:09 +02:00
José Valim 1fe756a2db Improve Record docs 2013-07-01 21:10:37 +02:00
José Valim 1da36c5b04 Re-organize records tests 2013-07-01 21:10:13 +02:00
José Valim 7a2aea160c Rewrite how records are introduced 2013-07-01 21:10:08 +02:00
José Valim 2837ce381b Get rid of specifics 2013-07-01 21:09:35 +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 dce2bee57e Merge pull request #1349 from jwarwick/code_typos
Fixing typos in the Code module
2013-07-01 00:46:07 -07:00
John Warwick 1bdefbb3d1 Fixing typos in the Code module 2013-06-30 22:32:37 -04:00
John Warwick 0e4bef3ac8 Fixing typos in Stream docs 2013-06-30 21:50:05 -04: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 c5cd8c3fcd Improve the docs 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 26e6fdbeb2 Improve Stream doctests 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 c04dcc1882 Avoid bootstraping issues 2013-06-30 16:33:04 +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 b666c696b4 Remove docs from functions documented on behaviours 2013-06-30 15:51:05 +02:00
José Valim 1f8c8f5292 Merge pull request #1241 from josephwilk/sets
Add Sets to Elixir
2013-06-30 06:43:36 -07:00