José Valim
c859e49199
Update CHANGELOG and remove deprecated code
2015-10-07 22:27:31 -05:00
Aleksei Magusev
17b3df271d
Fix bitstring splicing for bytes type modifier
2015-10-07 00:30:41 +02:00
José Valim
9c86f5b167
Solve bootstrap issues on defdelegate
2015-10-06 11:57:00 -05:00
Daniel Marin
fb8ac4d85c
Add default docs for delegate methods
2015-10-06 15:45:41 +01:00
Ryan Scheel (Havvy)
14ac3c5e97
Transplant Behaviour module docs to @behaviour
...
Most of these docs are from the 1.0 Behaviour module docs, but
those were seemingly lost at some point during the switch to
@callback. I'm not sure whether it is better to put them on
@behaviour or @callback, but I placed them on @behaviour. I'd
rather see a "Behaviour" page that has this information, not
just something randomly stuck in Module or Kernel.Typespec.
2015-10-06 02:20:52 +00:00
Eric Meadows-Jönsson
4bbd3b0bbb
inspect invalid ANSI sequences
2015-10-05 17:34:15 -05:00
Baris Balic
70e0b24536
List as_boolean() under Kernel.Typespec built-ins.
2015-10-05 14:35:27 -05:00
José Valim
9bcd8439e7
Tidy up GenServer docs
2015-10-04 15:58:34 -05:00
José Valim
40fff43ea0
Merge pull request #3832 from ma2gedev/macro-traverse
...
Add `Macro.traverse/4` pre/post-order traversal at the same time
2015-10-04 15:28:26 -05:00
Takayuki Matsubara
7e1073ec49
Add Macro.traverse/4 pre/post-order traversal at the same time
...
Almost is like the `Macro.prewalk/3` and `Macro.postwalk/3` but
pre/post-order traversal at the same time.
2015-10-05 00:06:21 +09:00
José Valim
f6b2ddd81b
Merge pull request #3805 from endersstocker/add-string-normalize-nfc
...
Add NFC support to String.normalize/2
2015-10-04 08:55:34 -05:00
José Valim
19a8e766a7
Merge pull request #3827 from lexmag/omit-else
...
Omit `else` option in `if` and `unless` clauses if it returns `nil`
2015-10-04 08:40:41 -05:00
javimolla
3eeb903534
fix3761: Add more info about :via registry to GenServer
2015-10-04 11:25:24 +02:00
Aleksei Magusev
d682c47bf9
Omit else option in if and unless clauses if it returns nil
2015-10-03 21:07:19 +02:00
Bryan Endersstocker
07fedf66d0
Add NFC support to String.normalize/2
2015-10-03 11:08:55 -04:00
Chris Maddox
ddfcc60505
Update special_forms.ex
...
I a word
2015-10-03 00:13:47 -05:00
José Valim
b933d84b05
Merge pull request #3817 from uDude/master
...
Fixed typo/grammar in Supervisor @doc
2015-10-02 16:53:18 -05:00
uDude
6239bf32db
Fixed a typo in @doc.
2015-10-02 15:19:22 -06:00
René Föhring
02b2bd2fc0
Fix small typo in docs for File.rename/2
2015-10-02 21:49:20 +02:00
CrowdHailer
f2cd34f1a8
use macro to show code sample in error message
2015-10-01 16:04:35 +01:00
José Valim
ca5a9060ef
Merge pull request #3810 from lexmag/optimize-keyword-new
...
Optimize `Keyword.new/2` function
2015-10-01 16:38:39 +02:00
José Valim
f8e2332db9
Merge pull request #3811 from michalmuskala/optimize_map
...
Optimize Enum.map/2 for lists
2015-10-01 16:28:32 +02:00
Ryan Bigg
0cc63df80d
Add demonstration for Enum.shuffle's randomness
2015-10-01 19:16:59 +10:00
Michal Muskala
ed66646187
Optimize Enum.map/2 for lists
...
Out of 3 options:
* using for comprehensions
* using explicit recursion with accumulator
* using simple consing
The third option seems to be the fastest. That's also the one that
is used by :lists.map/2
2015-10-01 00:56:07 +02:00
Aleksei Magusev
3f7f074494
Optimize Keyword.new/2 function
2015-10-01 00:17:24 +02:00
Luper Rouch
dabcb4c71f
Fix default value of :time option in File.Stat docs
2015-09-30 08:30:12 +02:00
eksperimental
0d3d410beb
Enum: rename variable in priv. func.
...
rename variable according to changes introduced in commit ced1095e17
2015-09-30 02:21:22 +07:00
José Valim
c0c6983363
Print byte information on base decoding errors
2015-09-29 15:21:50 +02:00
José Valim
f7654bf66a
Ensure we print unicode codepoints on errors, closes #3804
2015-09-29 15:03:55 +02:00
José Valim
5f36e0b33e
Merge pull request #3796 from radar/master
...
Add an example for IO.gets
2015-09-29 13:58:59 +02:00
Ryan Bigg
4d5a6bed63
Add an example for IO.gets
2015-09-29 07:58:17 -04:00
José Valim
efa505b38a
Ensure we keep ordering and last properties in keyword
2015-09-29 13:27:55 +02:00
Ryan Scheel (Havvy)
b268291c8c
Add comments to the first GenEvent example.
2015-09-29 11:42:42 +02:00
José Valim
30281d149a
Fix failing tests
2015-09-28 22:57:32 +02:00
José Valim
81503c0a91
Merge pull request #3792 from eksperimental/enum_rephrase_terminology
...
Enum: several fixes
2015-09-28 22:35:19 +02:00
eksperimental
ced1095e17
Enum - Several fixes
...
- Updates the terminology: what it was refereed as collection is now
Enumerable and collectable
- Text wrap to 72 chars
- Backticks added to enumerable and other variables.
- Specs fixed
- Summaries improved
- Try to avoid the use of what it returns in the summary.
- Documentation for several functions corrected and improved, as well as examples.
- Some variables in functions renamed.
- I have changed the use of value when it actually refered to elements in the
Enumerable to element, but i had kept it when it was used for tuples,
refering to key - value, even though value could be an enumerable.
2015-09-29 03:33:25 +07:00
CrowdHailer
74cbda6d8e
removed obsolete type option from the GenEvent handler type
2015-09-28 13:20:14 +01:00
Peter Saxton
266a51510c
Configuration file now supported
...
I was confused by that section as mix does have a config.exs file and wondered if it was outdated documentation.
2015-09-28 13:09:50 +01:00
José Valim
323a51d868
Merge pull request #3787 from eksperimental/range_periods
...
Remove surrounding spaces in range example
2015-09-28 09:51:26 +02:00
José Valim
fdbaeb0b5f
Wrap docs
2015-09-28 09:51:06 +02:00
José Valim
ca89db448f
Check Range creation at runtime
2015-09-28 09:49:31 +02:00
José Valim
9f2b778ddc
Merge pull request #3779 from deansc/external_links_in_summary
...
Remove external links in summary and update docs for Port.
2015-09-28 09:47:09 +02:00
eksperimental
f782eced38
Remove surrounding spaces in range example
2015-09-28 09:39:48 +07:00
Deans Charbal
cd36df6e3d
Remove external links in summary and update docs for Port.
2015-09-27 17:15:47 -04:00
José Valim
77f2558cf5
Merge pull request #3786 from lexmag/no-spaces-range
...
Use same form for ranges in error messages what we use for `inspect/2`
2015-09-27 22:57:48 +02:00
José Valim
8f869ad471
Merge pull request #3784 from eksperimental/fix_macro_to_string_test
...
Macro.to_string/2 : add test
2015-09-27 22:57:04 +02:00
Aleksei Magusev
262edd2c25
Use same form for ranges in error messages what we use for inspect/2
2015-09-27 22:25:53 +02:00
Aleksei Magusev
99f0ed1915
Сurrently Kernel.struct!/2 raises only KeyError
2015-09-27 22:13:37 +02:00
eksperimental
84c2d76c05
Macro.to_string/2 : add test
2015-09-27 22:58:14 +07:00
eksperimental
31a30afafd
Fix Range validation
...
- checks for lists when defining range
- replace (left .. right) with (first .. last) in error messages
to use the same terminology used in the function definition
- add guards to Range.new/2
- add specs to Range.range?/1
- test added to check for lists in range.
2015-09-27 22:46:18 +07:00