José Valim
4e651c8aae
Expand aliases inside quote
2013-01-11 09:55:38 +01:00
José Valim
eaa9714b3a
Improve hygiene for variables, related to #722
2013-01-10 14:29:45 +01:00
José Valim
bdc5f7ddd2
Also handle < and > inside interpolations
2013-01-10 14:29:45 +01:00
José Valim
c4421078b6
Allow protocol definitions nested inside modules
2013-01-08 10:33:54 +01:00
José Valim
5d285ae7f8
Add a stacktrace to /> deprecation
2013-01-08 09:38:29 +01:00
José Valim
caf2d82e90
Merge pull request #751 from alexrp/pipeline-operator
...
The pipeline operator is now '|>'.
2013-01-08 00:23:34 -08:00
José Valim
d55738228b
Merge pull request #753 from alexrp/enum-each-map-iter-index
...
Support indexed Enum.{each/2, map/2}.
2013-01-08 00:22:16 -08:00
alexrp
531e64c66a
Add back /> as a deprecated operator.
...
This commit can simply be reverted when the operator is to be removed.
2013-01-08 01:12:15 +01:00
alexrp
f3c89d7812
Enum: Use index type consistently.
2013-01-08 00:38:46 +01:00
alexrp
38410db2c9
Support indexed Enum.each/2.
...
Fixes #748 .
2013-01-08 00:36:24 +01:00
alexrp
1808a3b531
Support indexed Enum.map/2.
2013-01-08 00:36:24 +01:00
alexrp
aa44831398
Remove unused optional argument from Record.{deffunctions, deftypes}.
...
Fixes #744 .
2013-01-07 23:47:39 +01:00
alexrp
c9908a23dd
The pipeline operator is now '|>'.
...
Fixes #718 .
2013-01-07 23:38:55 +01:00
José Valim
9776f239b4
Provide faster record dispatching for protocols that do not have fallbacks.
...
Currently, if a protocol must be implemented for records but
not for tuples or any other data type, we simply dispatch to
the given tuple, assuming it is valid.
The downside is that we don't show `Protocol.UndefinedError`
messages if the protocol is invalid, but that can easily be
inflected from the underlying UndefinedFunctionError message.
2013-01-06 16:15:23 +01:00
José Valim
d3bac20deb
Merge pull request #749 from guedes/master
...
fixing some docs indentation
2013-01-06 06:16:55 -08:00
José Valim
3334cec732
Add cwd as parameter to Exception.format_entry
2013-01-06 15:11:52 +01:00
Dickson S. Guedes
c509e1a94f
fixing identation for markdown
2013-01-06 11:37:41 -02:00
José Valim
802aa1e878
Ensure Enum.take(iterator, 0) does not consume any item as well
2013-01-05 20:39:39 +01:00
José Valim
7b9246078c
Allow file iterators to be closed, Enum.take should not take items it is not going to use
2013-01-05 20:35:41 +01:00
José Valim
dc901c328a
Improve docs
2013-01-05 12:59:02 +01:00
alexrp
e7f029df00
Add String.valid_codepoint?/1.
2013-01-05 04:00:32 +01:00
José Valim
55055fbfa1
Define tests functions used as a dependency explicitly
2013-01-04 09:02:26 +01:00
Devin Torres
061c0a3a5d
Extend the Dict protocol to work with tuple lists
2013-01-03 15:58:35 -06:00
Yurii Rashkovskii
f373e67098
Get rid of a minor compile-time warning
2013-01-02 10:07:34 -08:00
José Valim
acbb6c0fee
Functions defined inside quote(location: :keep) retain the source stacktrace
2013-01-02 10:59:52 +01:00
José Valim
2eef987c50
Make a distinction between file and module body in stacktraces
2013-01-02 10:21:42 +01:00
José Valim
4387ae1a91
Propagate configs from ParallelCompiler in ParallelRequire
2013-01-01 13:14:22 +01:00
José Valim
4644d7a607
Do not rely on the third arg of catch clauses
...
This is an undocumented Erlang feature and it
must not be part of Elixir public API.
2012-12-31 16:23:24 +01:00
José Valim
03ce57de11
Fix test since we return a four item tuple in the stacktrace
2012-12-31 16:05:32 +01:00
José Valim
5f2d4eb472
Rename BOOTSTRAP to __BOOT__
2012-12-31 15:59:57 +01:00
José Valim
bf14e4b771
Discard spurious cons list from stacktrace
2012-12-31 15:14:58 +01:00
José Valim
b9313340b7
Keep \377 and 0377 as the octal syntax, closes #737
2012-12-31 13:46:56 +01:00
José Valim
2bd71f7604
Improve how exceptions are handled in general
...
* raise expects an explicit stacktrace in order to re-raise
* the Exception module now holds function for both stacktrace
manipulation and interface with erlang exceptions
* exceptions have their default functions with doc set to false
2012-12-31 13:33:30 +01:00
José Valim
2588bc8ec2
Underscored functions are allowed with passed via only
2012-12-31 11:51:44 +01:00
Yurii Rashkovskii
f38b0b8427
Add type specifications to the Node module
2012-12-28 23:30:35 -08:00
Yurii Rashkovskii
254aa8348e
Add type specifications to the Process module
2012-12-28 23:16:35 -08:00
Yurii Rashkovskii
ec9e3d3bae
Improve documentation for Process.get/0
2012-12-28 22:54:20 -08:00
Yurii Rashkovskii
08dbb0eb74
Minor documentation improvement for System.at_exit/1
2012-12-28 22:49:23 -08:00
Yurii Rashkovskii
a429cf318b
Documentation typo fix in Kernel
2012-12-28 11:18:38 -08:00
mururu
9e7f8b09f7
Fix record documentation
2012-12-27 17:10:07 +09:00
mururu
5711d74fd9
Support "\a"
2012-12-27 09:18:13 +09:00
José Valim
b6eb45ff90
Add Dict.put_new and Keyword.put_new
2012-12-26 17:39:06 +01:00
José Valim
09f61abe27
Add assert_receive and refute_receive to ExUnit
2012-12-26 17:28:10 +01:00
mururu
a00aaf48e3
Fix indent
2012-12-26 15:42:47 +09:00
José Valim
2267effae6
Merge pull request #731 from kimshrier/octal_and_hex_escapes_in_characters
...
add octal and hex escapes for characters
2012-12-24 10:55:20 -08:00
Yurii Rashkovskii
12a856c3c5
Improve message for bad function error
...
Closes #732
2012-12-24 12:54:23 +01:00
Yurii Rashkovskii
36c9e11064
Remove __info__/1 from __info__(:functions)
...
Closes #734
2012-12-24 12:51:09 +01:00
Kim Shrier
54d74efa04
Update octal and hex escapes for characters, char lists, and strings to all accept
...
the same syntax and be case insensitive. Also relocated the character type macros
into lib/elixir/include/elixir.hrl so that they didn't need to be defined in both
lib/elixir/src/elixir_interpolation.erl and lib/elixir/src/elixir_tokenizer.erl.
Added to the erlang and elixir unit tests to test the new syntax.
2012-12-23 20:05:23 -07:00
Kim Shrier
d23cc079ad
add octal and hex escapes for characters
2012-12-22 03:16:12 -07:00
José Valim
ea1a79a156
Merge pull request #730 from kimshrier/case_insensitive_hex_interpolation
...
add code and tests for case insensitive hex interpolation.
2012-12-22 00:39:22 -08:00