Yurii Rashkovskii
97d9db2a8f
Changes = operator to :: for typespec annotations
2012-06-01 11:03:44 -07:00
Yurii Rashkovskii
adf7df4f3b
Adds support for multiple defspec clauses for the same function
2012-06-01 11:02:47 -07:00
Yurii Rashkovskii
87c69433dc
Improves indentation in typespec.ex
2012-06-01 11:02:47 -07:00
Yurii Rashkovskii
ca67bfe64c
Replaces or with | in typespecs
2012-06-01 11:02:47 -07:00
Yurii Rashkovskii
10adf310bc
Typespec should use Macro.expand_aliases/2 instead of Code.eval_quoted/1
2012-06-01 11:02:47 -07:00
Yurii Rashkovskii
90929bd08e
Initial implementation of deftype, deftypep and defspec
2012-06-01 11:02:47 -07:00
José Valim
b15727dd42
Update lib/module.ex [ci skip]
2012-06-01 20:52:56 +03:00
José Valim
37ea3965da
Update lib/module.ex docs [ci skip]
2012-06-01 18:05:10 +03:00
José Valim
9220637a3c
Ensure nice stack trace on compiled callbacks, closes #314
2012-06-01 12:33:21 +02:00
José Valim
646ee5f125
Compile regexes at compilation time, speeds up considerably runtime
2012-06-01 11:23:00 +02:00
Carlos Galdino
3352b07275
Add File.write
2012-05-31 11:22:30 -03:00
José Valim
1acad9e5fc
Use filelib:ensure_dir
2012-05-31 10:57:27 +02:00
José Valim
5710630e2f
Regex is not multiline by default, closes #310
2012-05-30 21:50:02 +02:00
José Valim
2973c34224
Support :as in defdelegate, closes #311
2012-05-30 09:31:27 +02:00
José Valim
198a3f6291
Generate keywords at compile time, so we don't need to sort nor loop at runtime
2012-05-30 08:54:13 +02:00
Yurii Rashkovskii
27ad9423f8
Renames record's to_keyword function to_keywords
2012-05-29 19:26:04 -07:00
Yurii Rashkovskii
8ecf7b718d
Minor improvement to Record.to_keyword implementation
2012-05-29 14:53:34 -07:00
Yurii Rashkovskii
243a32f2d1
Adds to_keyword(record) function to all records
...
This function can be used to convert any record to a Keyword:
iex> defrecord A, a: 1, b: 2, c: nil
nil
iex> A.new
A[a: 1, b: 2, c: nil]
iex> A.new.to_keyword
[{:a,1},{:b,2},{:c,nil}]
iex> A.new(c: "a").to_keyword
[{:a,1},{:b,2},{:c,"a"}]
2012-05-29 14:32:00 -07:00
José Valim
fbaa46618c
Merge pull request #309 from elixir-lang/file_improvements
...
Add mkdir and mkdir_p
2012-05-29 08:03:37 -07:00
Rafael Mendonça França
1b811d3b72
Use the new in guard syntax
2012-05-29 12:00:13 -03:00
Rafael Mendonça França
488066d4cd
Add mkdir_p
2012-05-29 11:58:45 -03:00
Rafael Mendonça França
16843c7c39
Copy edit documentation [ci skip]
2012-05-29 11:33:57 -03:00
Rafael Mendonça França
a1cb84d2cc
Add File.mkdir
2012-05-29 11:33:52 -03:00
José Valim
8b814ded29
Be more strict on inspect since we cannot be sure of the list encoding
2012-05-29 13:35:34 +02:00
José Valim
fb8b6f53f2
Deprecate refer in favor of alias, use atom aliases throughout source code
2012-05-28 14:24:47 +02:00
José Valim
aaf6c91e0e
Rewrite use in Elixir, force it to rely on __CALLER__
2012-05-28 13:23:04 +02:00
José Valim
088eff4c19
Rewrite access macro in Elixir \o/
2012-05-28 12:00:18 +02:00
José Valim
2714642b1e
Add Macro.expand_aliases
2012-05-28 11:05:49 +02:00
José Valim
b3e49a183d
Deprecate in_guard special form in favor of the more flexbible __CALLER__.in_guard?
2012-05-28 10:20:30 +02:00
José Valim
b08cdc8ec7
Simpler mechanism for references
2012-05-27 22:03:01 +02:00
José Valim
0048852114
Initial spike with __ENV__
2012-05-27 12:11:56 +02:00
José Valim
2d3386cedf
Add support to %R
2012-05-26 11:43:03 +02:00
José Valim
9e675c85cd
Refactor duplicated logic in elixir_def_local
2012-05-25 13:11:08 +02:00
José Valim
6052352b62
Release 0.5.0 \o/
2012-05-24 21:27:52 +02:00
José Valim
d158c89087
Add c shortcut helper to iex, closes #303
2012-05-24 20:25:15 +02:00
José Valim
8530f11f81
Improvements to iex to allow windows support
2012-05-24 18:04:10 +02:00
José Valim
f01bbad718
Improve reporting on protocol assertions
2012-05-24 11:07:34 +02:00
José Valim
a22cac102e
Clauses out of sync now raises a warning
...
We also consider the current macro scope before raising
the warning, allowing meta-programming to work without
actually triggering the warning.
2012-05-24 10:58:44 +02:00
José Valim
bdc695672f
Add file directive to customize how functions are defined
2012-05-23 09:29:48 +02:00
José Valim
6dd2e89da9
Improve docs, skip unecessary linify calls
2012-05-23 08:48:22 +02:00
José Valim
fa547278fa
Fix printing of records, closes #292
2012-05-21 12:02:56 +02:00
José Valim
9c7be1114d
Merge pull request #290 from ezkl/add-file-functions
...
Adding File.rootname, File.extname and File.dirname [#288 ]
2012-05-21 02:04:14 -07:00
José Valim
133903b840
Improve docs for the in macro
2012-05-20 22:47:21 +02:00
José Valim
8a3439e6f3
Remove special conditions inside catch
2012-05-18 18:02:56 +02:00
José Valim
52cf46ea96
Support many args in -> exprs
2012-05-18 17:54:15 +02:00
José Valim
036e611047
Allow comma_expr on stab op
2012-05-18 17:28:37 +02:00
José Valim
1b22d34749
Implement EEx rules
2012-05-18 14:52:07 +02:00
José Valim
6029467073
Fix EEx (currently it does not support functions)
2012-05-13 22:00:53 +02:00
José Valim
f9dd6f66a6
Remove function single do: definition syntax
2012-05-13 17:36:54 +02:00
José Valim
e476a5ef0d
Stab at new syntax
2012-05-13 15:33:57 +02:00