Skip to content

Commit d239d99

Browse files
authored
Update wording for 1.13 get_in update (#11442)
Make it more clear what the behavior change is. Relates to this change: 587c80e#diff-43a76a6112c9082ee3ddb63acc2419db8764edd039cb52e29e436734b414574b Related ElixirForum post: https://elixirforum.com/t/elixir-version-of-a-safe-navigation-operator-navigating-nil-in-maps-structs/6023/29
1 parent caed7d1 commit d239d99

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

CHANGELOG.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -151,7 +151,7 @@ Finally, the `Code` module has also been augmented with two functions: `Code.str
151151
* [Inspect] Allow default inspect fun to be set globally with `Inspect.Opts.default_inspect_fun/1`
152152
* [IO] Allow `:eof` to be given as limit to `IO.getn/2`
153153
* [Kernel] Support the `:sigils` option in `import Mod, only: :sigils` and allow the sigil modifiers to be also digits
154-
* [Kernel] Make `get_in` consistently abort when `nil` values are found
154+
* [Kernel] Make `get_in` consistently abort and return `nil` when `nil` values are found (previously Elixir would raise an error in this case). This allows a user to use `get_in` as a safe navigation operator.
155155
* [Kernel] Improve compilation times by reducing the amount of copies of the AST across compiler processes
156156
* [Kernel] Raise if trying to define a module with a slash in its name
157157
* [Kernel] Warn when `?\` is used and there is no need for a escape character

0 commit comments

Comments
 (0)