José Valim
22627c44df
Merge pull request #1188 from josephwilk/string-contains
...
Adding String.contains?
2013-06-05 05:04:44 -07:00
Joseph Wilk
f0ecfbfac9
Adding String.contains?
...
Detect whether a string contains another string.
2013-06-04 19:20:11 +02:00
meh
854cab51bc
Implement Binary.Chars for URI.Info
2013-06-04 16:12:55 +02:00
José Valim
c0547a15ce
Ensure Enum.to_list and Dict.to_list return exactly the same result
2013-06-03 20:35:18 +09:00
James Fish
d1fd5a3c2a
Fix HashDict so that key comparison uses exact match
...
This change means that HashDict buckets are nolonger strictly ordered.
Previously keys which compared equal (==) but not exactly equal (===)
would be considered different for large sizes but equivalent for small
sizes. This ambiguity occured because hashes are only equal when terms
are exactly equal (===), so both now use exact (===) key comparisons.
Small HashDicts are still a single ordered list and large HashDicts
contain ordered buckets. Both of these may contain keys that compare
equal (==) but are not exactly equal (===), should these keys be present
in the same list or bucket the ordering of these keys (relative to each
other) is undefined.
See github issue #1171 for examples.
Note: If assumptions were made about the form of a HashDict they may
nolonger be valid. Particularly that HashDicts can nolonger be reliably
pattern matched on for equality.
2013-06-03 02:13:33 +01:00
José Valim
a3aa1e8de5
Ensure noname scope does not leak after assignment
2013-06-03 00:24:14 +09:00
Jonathan J Hunt
636da42f2a
Don't ignore nil during aliasing. Attempt to fix #1159
2013-05-31 15:58:15 -07:00
meh
5e803487ef
Improve Regex.escape tests
2013-05-31 19:04:26 +02:00
meh
caeea8973c
Support extended syntax in Regex.escape
2013-05-31 19:04:26 +02:00
José Valim
453d8835bd
Merge pull request #1150 from alco/to_binary-error
...
Better error message for Binary.Chars.List.to_binary. Closes #1144
2013-05-31 02:21:16 -07:00
Alexei Sholik
2272dd1c46
Better error message for Binary.Chars.List.to_binary. Closes #1144
2013-05-31 12:14:51 +03:00
meh
5ff3b760d9
Implement Regex.escape
2013-05-31 04:26:43 +02:00
José Valim
5ffec637b0
Ensure we can define a nested record named Record, closes #1133
2013-05-30 11:44:19 +09:00
José Valim
69a4138e8c
Remove remaining function implementation from access protocol old versions
2013-05-30 11:20:08 +09:00
José Valim
e208237669
Merge pull request #1136 from alco/1131-tests
...
Add tests for %w(BigAtom)a mentioned in #1131
2013-05-29 01:57:33 -07:00
Alexei Sholik
3ec014ff77
Merge pull request #1128 from alco/1020-extended-doctest
...
Implement extended doctests
2013-05-29 01:53:51 -07:00
Alexei Sholik
c19e3d0446
Add tests for %w(BigAtom)a mentioned in #1131
2013-05-29 11:49:21 +03:00
José Valim
99cdb412e3
Give higher precedence to |> than =~
2013-05-29 03:19:45 +02:00
Alexei Sholik
6137d55d10
Test doctests for ExUnit.CaptureIO
2013-05-28 18:48:18 +03:00
José Valim
fce97507de
Do not include remotes on reachable results
2013-05-28 07:46:39 +02:00
Alexei Sholik
3c9f486567
Add tests for body-less functions
2013-05-27 20:42:20 +03:00
José Valim
846048855f
Error if guards are given but no implementation, closes #1125
2013-05-27 19:24:24 +02:00
José Valim
dad7f7bfb7
Allow keywords in typespecs
2013-05-27 17:54:04 +02:00
José Valim
9e56691274
Ensure aliases from macros are properly expanded, closes #1123
2013-05-27 11:08:23 +02:00
José Valim
d19f6beca0
Provide source information to all dispatches and complement the API
2013-05-26 20:20:23 +02:00
José Valim
da84a797b0
Module.DispatchTracker also records remotes
2013-05-26 20:20:23 +02:00
José Valim
fefad03595
Ensure warnings are proper with yanked and reattached overridables
2013-05-26 17:51:42 +02:00
José Valim
f76aeba141
Check for imports conflicts in batches
2013-05-26 14:49:58 +02:00
José Valim
ffc91e3004
Rename Kernel.LocalsTracker to Module.DispatchTracker
2013-05-26 14:39:02 +02:00
José Valim
c3e7543e48
Extract imports handling to locals tracker (soon to be renamed)
2013-05-26 14:39:02 +02:00
José Valim
c7e86b0554
Start refactoring LocalsTracker to support more vertices
2013-05-26 14:39:02 +02:00
Dave Thomas
478f9bbb52
Fixes a bug in Stringends_with?
...
iex> String.ends_with? "hello", ["hell", "lo"]
false
The problem was that the implementation uses :binary.matches, and that returns only
one match. It would find "hell", but pos+len != size, and so returned false.
Changed for a less efficient implementation.
2013-05-25 17:43:02 -05:00
Adam Lindberg
ce1b12422d
Add String.starts_with? and String.ends_with?
2013-05-25 15:32:15 +02:00
José Valim
d757f31ccd
Unused functions with cyclic dependencies are now also warned as unused
...
Closes #1105
2013-05-25 00:14:37 +02:00
José Valim
0dcd5501f0
Fix a bug where unquote_splicing did not work on the left side of a stab op
2013-05-23 23:50:16 +02:00
José Valim
08e9faabe8
Fix a bug with nested record definitions
2013-05-23 22:53:35 +02:00
José Valim
e5f9dbde1a
Ensure Enum.to_list and Dict.to_list return the same results for dicts
2013-05-23 22:43:38 +02:00
Yuki Ito
c6e64aba18
Add tests for warning
2013-05-24 00:35:43 +09:00
José Valim
2c98c0999d
An Elixir module now translates to Elixir.Module instead of Elixir-Module
2013-05-23 14:36:56 +02:00
José Valim
66476b31d1
Merge pull request #1102 from ericmj/reducers
...
Reducers
2013-05-23 05:25:10 -07:00
José Valim
65e67cdc27
Ensure we emit a warning for recursive non used calls
2013-05-22 19:41:03 +02:00
Eric Meadows-Jonsson
a1ec5f1552
Clean up and fixes in reducer code
2013-05-22 18:43:51 +02:00
Eric Meadows-Jonsson
3f946d4af0
Use reducers in Enum, File and URI
...
Remove Enum.equal?
Remove File.iterator/2 and File.biniterator/2
2013-05-22 15:07:13 +02:00
José Valim
26640e3940
Start v0.9.0.dev work
2013-05-22 14:56:26 +02:00
José Valim
37054c8226
Deprecate Exception.format_entry in favor of Exception.format_stacktrace_entry
2013-05-22 00:55:46 +02:00
José Valim
054ff457be
Remove Enum.equal?
...
There is a branch work refactoring Enum and Enum.equal?
contains some limitations. We are removing it for now
since it was not officially released yet.
2013-05-21 20:30:19 +02:00
José Valim
d238d50579
Deprecate Code.eval in favor of Code.eval_string, closes #953
2013-05-21 12:57:22 +02:00
José Valim
9b0353a747
Improve error messages when there is a space in between function name and parenthesis
2013-05-21 12:57:22 +02:00
Alexei Sholik
245bc09d7b
Fix behavior of Path.expand/2. Improve docstrings
2013-05-21 02:17:23 +03:00
José Valim
8907edca3e
Improve error message for invalid patterns in guards and matches
...
Closes #1092
2013-05-19 21:39:44 +02:00