Skip to content

Commit ca82f8b

Browse files
authored
make shorter
1 parent aa0ce07 commit ca82f8b

File tree

1 file changed

+1
-10
lines changed

1 file changed

+1
-10
lines changed

doc/src/manual/modules.md

Lines changed: 1 addition & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -177,16 +177,7 @@ julia> using .NiceStuff: nice, DOG, NiceStuff
177177
The reason for this is if another dependency starts to export one of the
178178
same names as `Foo` and you attempt to use that name, then previously working
179179
code will error due to an ambiguity in which package the name should be
180-
taken from. This is especially problematic in released packages which needs
181-
to be forward-compatible with the future releases.
182-
183-
For example, if your package has dependencies `Foo` version `1` and `Bar`
184-
version `2`, and you write `using Foo, Bar` the current versions may not
185-
have any conflicting names, but if in a minor non-breaking release of `Bar`
186-
version 2.x it also exports the name `f`, then suddenly calling the function
187-
`f` will error because the name has become ambiguous. This issue can be
188-
avoided by explicitly listing what names you want to use from which modules.
189-
180+
taken from.
190181

191182
Julia has two forms for seemingly the same thing because only `import ModuleName: f` allows adding methods to `f`
192183
*without a module path*.

0 commit comments

Comments
 (0)