José Valim
dcf31bed0e
Do not use protocols during consolidation to avoid races ( #13856 )
2024-09-24 17:22:08 +02:00
Nathan Long
b8b79474c0
Document checking whether a process on another node is alive ( #13854 )
2024-09-23 23:33:00 +02:00
José Valim
03cc62933d
Type check size in binaries
2024-09-23 12:56:27 +02:00
José Valim
cc0cb4f1d0
Update CHANGELOG
2024-09-23 10:19:04 +02:00
José Valim
261a3ed759
Verify the right side of binary generators
2024-09-23 09:57:04 +02:00
Jean Klingler
13cab5f801
Remove mentions to unless/2 in guides ( #13852 )
2024-09-22 23:05:23 +09:00
Jean Klingler
619b1eebba
Soft-deprecate Kernel.unless/2 ( #13851 )
2024-09-22 21:41:59 +09:00
Jean Klingler
b5282802a7
Disable migrate_unless within defmacro and remove dbg for unless ( #13850 )
...
* Disable migrate_unless within defmacro
* Delete test for unless expression dbg
* Remove dbg support for unless
2024-09-22 20:04:23 +09:00
Jean Klingler
4126cdd8ab
Add --migrate flag to mix format ( #13846 )
2024-09-21 21:47:16 +09:00
Jean Klingler
5902c29ad5
Add :migrate_unless option to formatter ( #13844 )
2024-09-20 23:00:01 +09:00
Jean Klingler
fb065b7709
Fix Code.Fragment.surround_context for keyword keys ( #13843 )
2024-09-20 17:53:32 +09:00
Jean Klingler
5eddb4bbfe
Rework migrate options for the formatter ( #13841 )
2024-09-20 17:34:59 +09:00
Jean Klingler
8e31621327
Format charlists as ~c sigils in doc ( #13842 )
2024-09-20 16:14:30 +09:00
Jean Klingler
ad4db2e8ec
Explicit String.at/2 access cost and alternatives ( #13838 )
2024-09-19 18:48:49 +09:00
Jean Klingler
8cb6abf6d2
Formatter fix: next_break_fits respects line_length ( #13792 )
...
* Refactor fits to return :fit | :no_fit
* Formatter fix: next_break_fits respects line_length
2024-09-18 23:13:11 +09:00
José Valim
6b15b093c7
Remove line information from struct definitions, closes #13761
2024-09-18 11:35:38 +02:00
José Valim
4104bfc193
Include module attribute line and name on tracing, closes #13762
2024-09-18 10:19:39 +02:00
Urmas Talimaa
7a634a2fe6
Fix parsing of fractional durations ( #13832 )
...
The parsing of fractional durations checked for non-negativity by
testing second > 0, which reports false for not only negative integers
but also for 0.
Note that changing `if second > 0` to `if second >= 0` would fix
behaviour for "PT0,6S", but would break "PT-0,6S".
2024-09-18 09:03:36 +02:00
bigbluejay9
a0b5cc8ad5
Use ~c to represent charlist arg for connect/3 ( #13837 )
...
Suppresses compiler warning about single quoted strings.
```
warning: single-quoted strings represent charlists. Use ~c"" if you indeed want a charlist or use "" instead
```
2024-09-18 08:26:24 +02:00
Przemysław Rychter
12dc4b5459
Improve Map.pop!/2 docs
2024-09-17 19:12:09 +02:00
José Valim
6342bb2803
Exclude latest tags
2024-09-17 18:01:25 +02:00
José Valim
ad3646e4fe
Fix docs node generation
2024-09-17 09:36:39 +02:00
José Valim
79f00192f7
Initial support for tuples and in elem/2
2024-09-16 22:32:48 +02:00
José Valim
cf3132e89e
Add guards and introduce error_type() for clarity
2024-09-16 15:08:35 +02:00
José Valim
44d94b09aa
Track tuples in the type system
2024-09-16 14:49:38 +02:00
José Valim
fb6dd0f903
Remove map_update as we can implement as a has_key?+put
2024-09-16 14:44:53 +02:00
Guillaume Duboc
66d44bee60
Add map delete, put, fetch type operations ( #13795 )
2024-09-16 14:39:46 +02:00
Łukasz Jan Niemier
05d9735121
Docs: add link to capture syntax ( #13828 )
...
This should provide a link for a reader to investigate more about that
new syntax shown in the example.
2024-09-15 20:42:53 +02:00
asdfzxcx
400ed5d415
Fix broken/outdated erlang doc links ( #13827 )
2024-09-14 19:33:28 +02:00
Nathan Long
5cb8633a54
Show charlist sigil here ( #13804 )
2024-09-06 22:06:19 +02:00
Nathan Long
7a2ca783a3
Link to docs ( #13812 )
2024-09-06 22:01:20 +02:00
Rudolf Manusadzhian
ad97f93108
Add a rule of thumb ( #13813 )
...
A rule of thumb when to prefer using `and`, `or` and `not` over `&&`, `||` and `!`
2024-09-06 21:58:19 +02:00
James Shi
37e5539239
Improve clarity of consolidated protocol's optimisation ( #13811 )
2024-09-06 11:36:39 +02:00
Mathew Shen
defad93a11
Fix code example in GenServer docs ( #13810 )
2024-09-06 11:00:30 +02:00
Jean Klingler
9b9ab9948f
Fix: Macro.expand/2 should not expand __ENV__ on :match context ( #13807 )
2024-09-06 16:23:38 +09:00
Jean Klingler
1286a6257f
Replace unless/2 usages in the codebase ( #13808 )
2024-09-06 16:22:51 +09:00
Jean Klingler
1ccb7a1135
Explicitly mention trimming in String.split/1 doc ( #13802 )
2024-09-01 14:15:13 +09:00
sarayourfriend
00f26629da
Fix a few more minor typos ( #13801 )
2024-08-31 20:18:46 +02:00
sarayourfriend
31f3a74a2d
Fix missing sentence subject ( #13800 )
...
Thanks for the excellent docs, I am having a great time learning Elixir. Just noticed a small typo 🙂
Cheers.
2024-08-31 12:01:55 +09:00
Art Kay
281a9df6f7
Fix typos in a test and in a doc ( #13799 )
2024-08-30 22:53:08 +02:00
José Valim
14595bb63f
Add Config.read_config/1 ( #13754 )
2024-08-27 04:08:17 +02:00
Jean Klingler
1889ee9882
Add visibility for flat_map filtering in docs ( #13794 )
2024-08-26 20:12:57 +09:00
Jean Klingler
a564c2eeb4
Optimize Enum.flat_map/2 for filtering ( #13793 )
2024-08-26 20:10:45 +09:00
Dave Lucia
27b894c05f
Fix grammar in Exception.message/1 callback ( #13791 )
2024-08-23 16:37:07 +02:00
Nathan Long
f408063d69
Define time zone databases in the docs ( #13790 )
2024-08-21 18:43:49 +02:00
Łukasz Samson
0e4aaf00c5
Correctly validate number of args for clauses with when in for and catch ( #13785 )
2024-08-19 12:22:33 +02:00
erikosmond
f2f4f3a621
Add doc to explain return value with after clauses ( #13783 )
2024-08-18 23:49:09 +02:00
José Valim
07137a1edd
Improve docs around only and optional, closes #13782
2024-08-17 22:02:11 +02:00
Steve Cohen
b8cec3037c
Ensure :native is a valid parameter type ( #13781 )
...
Several of the functions in System that deal with time had a typespec
that only allowed the time_unit type even though they accepted the
:native time unit. This confuses dialyzer if :native is passed to
these functions
2024-08-17 10:52:20 +09:00
David Sulc
cf49f8beba
Clarify example comment in Enum.slide/3 ( #13779 )
2024-08-14 09:40:53 +02:00