Skip to content

Commit c4a564d

Browse files
committed
Undocument 'global' stuff
1 parent 6cdbfdf commit c4a564d

File tree

2 files changed

+0
-35
lines changed

2 files changed

+0
-35
lines changed

docs/Compatibility.md

Lines changed: 0 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -49,15 +49,6 @@ So, writing a portable script that only makes use of Pluto 0.8.0's keywords requ
4949
pluto_use "0.8.0"
5050
```
5151

52-
This feature also supports quick encompassing of optional keywords. So, instead of:
53-
```pluto
54-
pluto_use "0.8.0", global
55-
```
56-
You can use a '+' after the version number to also enable all of the optional keywords. As of 0.9.0, the only optional keyword is `global`:
57-
```pluto
58-
pluto_use "0.9.0+" -- The same as pluto_use "0.9.0", global
59-
```
60-
6152
For module developers and scripts which may be used in future versions of Pluto, we recommend you use `pluto_use` for two reasons:
6253
- **Portability.** This will override the compatibility mode settings compiled into Pluto so your script will be parsed identically in all Pluto environments.
6354
- **Proactive compatibility.** Any keywords added by future versions of Pluto will also be put in compatibility mode by these statements, so in the off-chance your script uses a future reserved keyword as a variable name, it would still parse as you intended when you wrote it.

docs/New Features/Compiler Warnings.md

Lines changed: 0 additions & 26 deletions
Original file line numberDiff line numberDiff line change
@@ -191,32 +191,6 @@ switch a do
191191
end
192192
```
193193

194-
### implicit-global
195-
This is raised when a global is declared without an explicit prefix, such as the optional `global` keyword:
196-
```pluto showLineNumbers
197-
pluto_use global
198-
a = 1
199-
```
200-
```
201-
file.pluto:2: warning: implicit global creation [implicit-global]
202-
2 | a = 1
203-
| ^^^^^ here: prefix this with '_G.' or 'global' to be explicit
204-
```
205-
206-
Examples of code that does not raise this warning:
207-
```pluto
208-
pluto_use global
209-
global a = 1
210-
a = 2
211-
```
212-
```pluto
213-
-- @pluto_warnings enable-implicit-global
214-
_G.a = 1
215-
a = 2
216-
```
217-
218-
This warning type is enabled via `pluto_use global` or [compile-time configuration](#compile-time-configuration).
219-
220194
### discarded-return
221195
This is raised when the return value of a function declared `<nodiscard>` was discarded. See [Nodiscard Functions](<Nodiscard Functions>).
222196
```pluto showLineNumbers

0 commit comments

Comments
 (0)