José Valim
4723bca17e
Merge pull request #1650 from ericmj/enum-slice
...
Add Enum.slice/3
2013-08-25 18:08:48 -07:00
Eric Meadows-Jonsson
263f4bf543
Add Enum.slice/3
2013-08-25 23:14:31 +02:00
José Valim
fad339957d
Remove empty Tuple module
2013-08-25 10:30:15 -03:00
José Valim
488344839a
Allow any function identifier as a variable, closes #1649
2013-08-25 10:28:55 -03:00
José Valim
f02f90fce0
Merge pull request #1648 from pminten/quote-improper-lists
...
Allow Macro.escape([1|2])
2013-08-25 03:45:37 -07:00
Peter Minten
c73919993d
Allow Macro.escape([1|2])
...
This fixes #1646
2013-08-25 09:35:08 +02:00
Alexei Sholik
3768087b47
Fix failing doctest
2013-08-25 00:29:54 +03:00
José Valim
4a0db2e974
Handle more types on bitsyntax.
2013-08-24 16:07:55 -03:00
José Valim
55aad68512
Splice nested binaries with default types and size
2013-08-24 15:55:24 -03:00
José Valim
3b4954b652
Merge pull request #1643 from pminten/elixirc-silent
...
Add --verbose to elixirc
2013-08-24 11:15:21 -07:00
José Valim
fb30101632
Merge pull request #1645 from vanstee/string-split-repeats
...
Keep empty strings when splitting
2013-08-24 05:21:14 -07:00
José Valim
c348eb7cc5
Merge pull request #1644 from jwarwick/string_typos
...
Fixed doc typos in String and Node
2013-08-24 05:02:29 -07:00
José Valim
98c47e94a1
String.to_float/1 docs updated
2013-08-24 13:56:35 +02:00
Peter Minten
4c28f325e3
Supress 'Compiled' msg by default in elixirc
...
Adds a --verbose option to elixirc
This fixes #1618
2013-08-24 13:30:34 +02:00
José Valim
da50584060
Deprecate def/4 and friends in favor of def/2 with unquote and friends
2013-08-23 19:42:20 +02:00
vanstee
891564f114
Keep empty strings when splitting
...
To stay consistent with both `String.split/2` and `:binary.split` we
need to keep around empty strings that are accumulated while splitting.
In the future we could support the `:trim` option to consistently remove
these in call calls to `String.split`.
Fixes #1636
2013-08-23 12:37:02 -04:00
John Warwick
22336a94d0
Fixed doc typos in String and Node
2013-08-23 10:58:38 -04:00
José Valim
cae9b05d6a
Merge pull request #1638 from jwarwick/enum_typo
...
Fixed typo in Enum docs
2013-08-23 02:31:27 -07:00
José Valim
a6cdc835a1
No need to wrap quote do: nil in a block
2013-08-23 11:22:11 +02:00
John Warwick
7ae1795c62
Fixed typo in Enum docs
2013-08-22 11:36:35 -04:00
José Valim
7b3bbe3a36
Another attempt at cwd handling
2013-08-22 16:07:19 +02:00
José Valim
ade2c25e08
Handle when :file.get_cwd returns a binary
2013-08-22 15:59:14 +02:00
José Valim
0510512375
Deprecate to_binary in favor of to_string
...
We also rename Binary.Chars to String.Chars.
As Binary.Chars was the protocol used for interpolation,
it is semantically correct to have a protocol that works
on strings, instead of raw binaries.
2013-08-22 12:19:30 +02:00
José Valim
0e1aac32f5
import accept :functions and :macros as values in :only
...
This commit removes the previous ambiguous syntax:
import :functions, Foo
In favor of:
import Foo, only: :functions
2013-08-22 10:34:45 +02:00
José Valim
308d5a35eb
Merge pull request #1629 from Raynes/is_it_even_odd
...
Add a pair of even and odd checking functions
2013-08-21 23:48:59 -07:00
John Warwick
384921a905
Fixed doc typos in Code and Path
2013-08-21 15:51:57 -04:00
Anthony Grimes
fcc37030e2
Add a pair of even and odd checking functions.
2013-08-21 11:08:20 -07:00
José Valim
2f63c745a3
Merge pull request #1630 from Raynes/chunks_by
...
Add chunks_by
2013-08-21 01:30:26 -07:00
José Valim
29f030bb28
Update CHANGELOG
2013-08-20 23:57:59 +02:00
José Valim
8b02a2a7a0
Convert external functions into quoted expressions
2013-08-20 23:52:00 +02:00
Anthony Grimes
f7e6b29e86
Add chunks_by.
2013-08-20 14:30:45 -07:00
José Valim
c6a12f5039
Improve checks of functions inside records
2013-08-20 19:31:10 +02:00
José Valim
20418a14f7
Refactor Enum.chunks to use Enumerable.reduce/3, avoiding starting lazy collections twice
2013-08-20 14:08:27 +02:00
José Valim
3e1099830a
Properly handle @file that comes from warnings
2013-08-20 11:39:29 +02:00
Anthony Grimes
7f00aded18
Add Enum.chunks.
2013-08-20 00:48:42 -07:00
José Valim
84a2b31221
Add Macro.to_string/2
2013-08-19 18:21:42 +02:00
José Valim
f84b4121ce
Allow << _ :: utf8 >> <> binary in matches, closes #1619
2013-08-18 14:36:54 +02:00
José Valim
ff2af55e1d
Improve warning for ungrouped clauses
2013-08-18 10:05:36 +02:00
José Valim
a45a2c9d93
Allow erlang options when compiling elixir regexes
2013-08-17 11:57:17 +02:00
parroty
f2066e0ea9
Add underscore for avoiding variable unused warning
2013-08-17 12:02:48 +09:00
José Valim
aaebf84440
Always stop on --, even for parse
2013-08-16 09:28:58 +02:00
Stratos Voukelatos
42339679e0
Fixed comment typo in lib/elixir/src/elixir_translator.erl
2013-08-16 00:34:23 +03:00
José Valim
a696b9cc11
Update Macro.to_string comments
2013-08-15 14:27:53 +02:00
José Valim
ffc629a408
Merge pull request #1606 from pminten/macro-to-string-binop-parens
...
Macro.to_string: don't add unneeded binop parens
2013-08-15 05:24:53 -07:00
Peter Minten
081dbceeee
Macro.to_string: don't add unneeded binop parens
...
This changes the `Macro.to_string` output of (quoted) `1+2+3+4` from
`((1 + 2) + 3) + 4` to `1 + 2 + 3 + 4`.
2013-08-15 14:05:37 +02:00
José Valim
9ec2176675
Ensure we are not allocating a new binary on each step
2013-08-15 13:51:55 +02:00
José Valim
eb9753ddd1
Limit inspect by default, closes #1595
2013-08-15 10:35:04 +02:00
José Valim
59013d4066
Merge pull request #1602 from jwarwick/iolist_typo
...
Cleaned up Kernel.iolist_to_binary/1 docs
2013-08-14 23:53:52 -07:00
John Warwick
4900cd84fc
Cleaned up Kernel.iolist_to_binary/1 docs
2013-08-14 21:09:46 -04:00
Keith Alexander
5c3ff52741
Update file.ex
...
fixed typo
2013-08-14 23:47:00 +01:00