José Valim
bd454e286d
Ensure dbg module is a compile-time dependency
...
Related to #12892 .
2023-08-28 13:30:46 +02:00
Zach Allaun
b50c5eb031
Fix Code.Fragment.surround_context/2 for submodules of non-aliases ( #12890 )
2023-08-24 20:55:42 +02:00
sabiwara
03ef7a1059
Always pass stracktrace when necessary
2023-08-23 12:05:52 +02:00
Jean Klingler
51c2cbff03
Cheatsheet small fixes ( #12884 )
2023-08-22 23:43:10 +09:00
Jean Klingler
a406527510
Mention patter-filtering in comprehensions ( #12883 )
2023-08-22 22:49:24 +09:00
Po Chen
38a7c77786
Fix with_index/2 example ( #12882 )
2023-08-22 12:41:52 +02:00
José Valim
682b6d5b21
Add comprehension examples
2023-08-22 11:29:37 +02:00
Po Chen
3b92c0d5a2
Fix map_reduce result ( #12881 )
2023-08-22 11:27:06 +02:00
José Valim
fddb26d43e
Add more examples to filtering
2023-08-22 11:01:25 +02:00
José Valim
47d3a18615
Add remaining functions to Enum cheatsheet
2023-08-22 10:55:45 +02:00
José Valim
997d92575b
Fix links, add pending images
2023-08-21 14:44:49 +02:00
José Valim
7e273b8443
Generate ePUB format
2023-08-21 14:23:32 +02:00
José Valim
379f38e64e
Add Enum cheatsheet
2023-08-21 13:16:59 +02:00
José Valim
9b9ce35894
Move additional remarks to header
2023-08-21 13:16:59 +02:00
Lucas Francisco da Matta Vegi
26d9b44478
"Long parameter list" added (Anti-patterns documentation) ( #12875 )
2023-08-20 20:56:07 +02:00
Jean Klingler
3f930b4a92
Update other undefined variable errors in docs ( #12876 )
2023-08-20 15:17:49 +09:00
José Valim
b87b0a6e86
Fixes to guides and diagrams
2023-08-19 12:06:54 +02:00
Jean Klingler
6b1208b035
Minor typo in guide ( #12873 )
2023-08-18 21:58:09 +09:00
Lucas Francisco da Matta Vegi
a720c37c20
"Speculative assumptions" added (Anti-patterns documentation) ( #12868 )
2023-08-18 11:59:31 +02:00
felipe stival
c0f5129c3e
Fix DateTime.from_iso8601/3 documentation ( #12872 )
2023-08-18 10:56:50 +02:00
José Valim
cb3725234b
More fixes, add disclaimer
2023-08-18 00:58:02 +02:00
José Valim
4e76929e59
More renames to avoid ambiguity
2023-08-18 00:35:36 +02:00
José Valim
0cb4b4b9ad
Brighten background in diagram
2023-08-18 00:01:38 +02:00
José Valim
22856a95bf
More touch ups on Mix and OTP
2023-08-17 23:59:22 +02:00
José Valim
900cdd0f1f
Touch ups on Mix & OTP guide
2023-08-17 23:56:34 +02:00
José Valim
e505b3aa28
Add diagram to supervisor
2023-08-17 23:56:25 +02:00
José Valim
6151e30874
Rename guides to avoid conflicts
2023-08-17 22:44:18 +02:00
José Valim
625d096517
Add sequence diagram to GenServer
2023-08-17 22:33:54 +02:00
José Valim
f7e33c70c8
Add Mermaid diagram to GenServer
2023-08-17 21:46:10 +02:00
José Valim
6a72d2926c
Improve docs for with_diagnostics
2023-08-17 09:41:12 +02:00
Jean Klingler
a94700f861
Fix unused function warning with overridables ( #12865 )
2023-08-16 16:18:07 +09:00
Lucas Francisco da Matta Vegi
93dc98946b
"Dynamic atom creation" added (Anti-patterns documentation) ( #12804 )
2023-08-16 09:17:04 +02:00
Nic Nilov
43681f670d
Maps AST representation docs fix ( #12863 )
2023-08-15 14:43:57 +02:00
Dave Lucia
44cce79e00
Improve UndefinedFunctionError for unqualified module ( #12859 )
...
This PR builds off of #12839 , handling the case where a developer
forgets to alias a module, resulting in UndefinedFunctionError.
Imagine we have the following modules in our Elixir program.
```elixir
def MyAppWeb.Context.Event do
def foo, do: :bar
end
```
If the developer attempts to reference this module, but forgets to type
the alias, they will now get module suggestions like.
```elixir
** (UndefinedFunctionError) function Event.foo/0 is undefined (module Event is not available). Did you mean:
* MyAppWeb.Context.Event.foo/0
Event.foo()
iex:2: (file)
```
2023-08-15 11:12:34 +02:00
José Valim
0099c2aec5
Add a reference to keywords and maps guide
2023-08-15 10:37:58 +02:00
José Valim
e0d04e1ffe
Warn on nullary remote calls, related to #9510
2023-08-15 10:30:57 +02:00
Uwe Krause
0c2b763d02
Add hint to needed dependencies for observer ( #12861 )
2023-08-15 09:15:54 +02:00
José Valim
52158d7de3
More docs for maps/keywords
2023-08-14 12:58:44 +02:00
José Valim
ec2733611b
Add :observer.start at the end
2023-08-14 12:43:00 +02:00
José Valim
63fc8b6b9e
Improve lists and tuples guides with more and simpler examples
2023-08-12 23:04:30 +02:00
José Valim
17b8b364c0
More tests for invalid sequences
2023-08-12 22:37:50 +02:00
José Valim
d5931e4e27
Optimize and auto-synchronize String.capitalize/2
2023-08-12 22:20:38 +02:00
José Valim
415bc8714b
Bring String.capitalize/2 back
2023-08-12 22:08:46 +02:00
José Valim
fb69ea792e
Bring turkic cases back to capitalize
2023-08-12 21:58:24 +02:00
José Valim
1e709961e1
Link to reference documents on function/module naming definition
2023-08-12 10:56:10 +02:00
José Valim
ae24200ded
Use zero float comparison compatible with Erlang/OTP 27
2023-08-12 10:41:01 +02:00
magashpillay
284f0b2501
Fix code block in Markdown guides ( #12852 )
2023-08-10 10:40:56 +02:00
José Valim
88ad5d2c2b
Fix internal usage of String.capitalize/1
2023-08-09 17:13:06 +02:00
Nathan Long
fb76eb0b84
Quick examples of timetime shifts ( #12716 )
2023-08-09 17:08:54 +02:00
Dave Lucia
458fcaf50f
Improve UndefinedFunctionError for mis-cased module ( #12839 )
2023-08-09 17:06:35 +02:00