José Valim
ad2cc865f4
Fix boundary in Enum.take/2, closes #3042
2015-02-01 09:16:53 -02:00
Andrea Leopardi
6a8305e719
Fix some grammar in the docs for Access, and add more docs
...
- Added some missing words (à-la-typo) to the Access docs
- Added more detailed docs for `Access.get_and_update/3`
- Changed an empty start to a 1/2 Unicode char in the example because, well, it
makes more sense :D
2015-01-31 12:26:38 +01:00
José Valim
27ad8b588b
Merge pull request #3029 from lexmag/suppress-warnings
...
Suppress warnings
2015-01-31 11:51:38 +01:00
Andrea Leopardi
da50690c6b
Add an example of defining a __using__/1 macro
...
The behaviour was explained pretty clearly in the docs, but for example it was
unclear that `__using__/1` has to be a macro. I added an example so that it's
easier to understand how to use `use/1-2` and `__using__/2`.
2015-01-30 21:16:34 +01:00
Andrea Leopardi
95392f65b5
Fix a minor typo in the docs for Module
2015-01-30 16:13:01 +01:00
Aleksei Magusev
f1f2a3e0dc
Make Dict.get_and_update/3 overridable
2015-01-29 23:21:49 +01:00
Aleksei Magusev
b2df2aebe9
Fix Keyword.get_and_update/4 funtion name
2015-01-29 13:11:10 +01:00
José Valim
81c1be315a
Merge pull request #3026 from whatyouhide/dict-get-and-update
...
Dict.get_and_update/3 and Keyword.get_and_update/3
2015-01-29 11:00:45 +01:00
José Valim
bf94a3d62d
Improve docs for functions in File
2015-01-28 22:49:15 +01:00
José Valim
c67e3fbc9d
Ignore exported vars warning
...
Closes #2798
2015-01-28 21:49:55 +01:00
José Valim
d15d65ca06
Avoid export vars in destructure
2015-01-28 21:43:16 +01:00
Andrea Leopardi
bb9a9b16de
Optimize the performance of Map.get_and_update/3 and Keyword.get_and_update/3
...
I just shamelessly copied the implementation of `Access.get_and_update/3` for
`Map` and `Keyword` in order to optimize the performance of this function for
these two modules.
2015-01-28 10:59:44 +01:00
Andrea Leopardi
b4654b7846
Add Keyword.get_and_update/3
...
I added the `get_and_update/3` function to the `Keyword` module. I also added
tests for this function, docs (with doctests) and specs.
2015-01-27 23:11:37 +01:00
Andrea Leopardi
45d81bdc4c
Add Dict.get_and_update/3
...
I added the `Dict.get_and_update/3` function to the `Dict` behaviour (with a
default implementation like most of the functions in the `Dict` module); this
feature was discussed in #2973 .
I also added test for the new function, docs with doctests and specs.
2015-01-27 23:11:09 +01:00
José Valim
3d98684f12
Improve error message with invalid structures in maps
...
Closes #2958
2015-01-27 17:43:22 +01:00
José Valim
e62bc9e215
Do not choke when Exception.message/1 does not return a string
2015-01-26 19:17:31 +01:00
José Valim
011d0fda4f
Explicitly pass allowed attributes to __info__
2015-01-26 19:17:31 +01:00
Matt Enlow
b93ca36ee3
Change Record#extract to a function
...
- Also adds docs for defining records that were extracted with anonymous functions
2015-01-26 10:47:58 -07:00
José Valim
4c402c6362
Avoid escape characters in System.cmd/3 docs
2015-01-25 11:26:03 +01:00
Andrea Leopardi
c678c973f9
Add an example of Enum.find_value/3 to the docs
...
There were only examples of Enum.find_value/2 in the docs for
Enum.find_value/2-3, so I added an example of Enum.find_value/3.
2015-01-24 19:16:08 +01:00
José Valim
8475ab813b
Merge pull request #2801 from fishcakez/app_env
...
Move application state out of application env
Conflicts:
lib/elixir/lib/uri.ex
lib/iex/lib/iex/server.ex
2015-01-24 14:07:46 +01:00
José Valim
316865a79e
Do not show aliases and import warnings when code cannot compile
2015-01-24 11:47:34 +01:00
José Valim
442dfd5ac6
Don't ignore escape characters in regex
2015-01-22 11:45:56 +01:00
José Valim
6524f871f6
Add examples to System.cmd/3
2015-01-20 11:54:05 +01:00
José Valim
47c70b641b
Inline common map cases in into
2015-01-17 21:36:48 +01:00
José Valim
7e645cea3f
Do not repeat the module name
2015-01-15 15:19:20 +01:00
José Valim
9ffafb7e25
Merge pull request #2762 from fishcakez/undef_errors
...
Improve UndefinedFunctionError
2015-01-15 15:15:50 +01:00
José Valim
ff866c04e8
Optimize common flat_map_reduce paths
2015-01-15 10:59:24 +01:00
Scott Thompson
eaf15515c9
Fixes #3009
...
Resolves a slight typo in the documentation for GenEvent.swap_handler and shores up the backtick quoting surrouding it.
2015-01-11 09:13:47 -06:00
José Valim
503d406d17
Merge pull request #3003 from xavier/invert-order-of-non-matching-token-messages
...
Invert the order of non matching token messages (closes #2993 )
2015-01-10 14:26:22 +01:00
Xavier Defrang
4b4ef723ff
Invert the order of non matching token messages ( closes #2993 )
2015-01-10 09:40:44 +01:00
Scott Riding
c0660e10dc
Fix error documentation for Kernel.hd/1
...
Calling hd on an empty list raises ArgumentError
2015-01-09 14:23:34 -07:00
Aleksei Magusev
c6157e5b5e
Improve error message when using attributes inside match in module
2015-01-09 22:12:02 +01:00
John Warwick
4ceb26d7d6
Fixed typos in Supervisor doc
2015-01-07 16:10:25 -05:00
José Valim
3c13eecc05
Ensure ExUnit survives inspect and exception message failures
2015-01-07 09:49:15 +01:00
Igor Kapkov
0707aba466
Fix inconsistency of collection in Enum
2015-01-07 15:49:16 +08:00
José Valim
7229c198e4
Remove broken and unfixable delegate_locals_to implementation
2015-01-06 23:34:08 +01:00
José Valim
bf51b915fa
Merge pull request #2988 from alehander42/add-column-info-to-tokenizer
...
Add column info in tokenizer, #2987
2015-01-06 16:11:57 +01:00
Alexander Ivanov
fa5921fa33
Fix column counting in elixir_interpolation.erl
2015-01-06 16:57:00 +02:00
Radosław Bułat
3bac998f66
GenServer docs fix: missing {:ok, state, :hibernate} for init callback
2015-01-06 14:44:56 +01:00
Alexander Ivanov
83e992ee8f
Count \\ as just one character in column info in tokenizer
2015-01-06 14:49:23 +02:00
José Valim
9707097885
Support safe: boolean option in inspect
2015-01-06 11:07:03 +01:00
Alexander Ivanov
1a456768d5
Change location info format in tokenizer
...
Start column counting in tokenizer from 1, store location info in a tuple `{Line, BeginColumn, EndColumn}` instead of a list
2015-01-05 13:35:23 +02:00
Alexander Ivanov
96a37693f0
Fix line extraction in elixir_parser
2015-01-05 12:16:15 +02:00
Alexander Ivanov
d7e00557d0
Add column info in tokenizer, #2987
...
Add column info for each token in elixir_tokenizer.
Change the format of location info from `Line` to `[Line, BeginColumn,
EndColumn]`. Pass the current column after the current line in
`elixir_tokenizer:tokenize`. Reflect the change in related modules.
2015-01-05 03:34:53 +02:00
José Valim
247dfff01b
Remove "private structs" from struct types
2015-01-03 23:36:28 +01:00
José Valim
3cc1c1533d
Keep original stacktrace on inspect errors
2015-01-03 20:26:32 +01:00
Abejide Ayodele
f064874cd2
Specify error from node/1 as an atom
2015-01-02 22:11:33 -06:00
jw2013
becb13e000
fix spec for Integer.digits/2
2014-12-30 15:46:59 -05:00
jw2013
abc822f545
make doctest syntax consistent
2014-12-29 05:25:03 -05:00