Additions
jaiva/arrays
- Add
a_map. You can guess what it does.
scope() global function
Configures the current scope to whichever settings provided.
This takes in any number of arguments (strings) to use to configure the current scope.
The following table describes what each value is, aliases and what it does.
(Case-insensitive.)
| Property | Aliases | Description |
|---|---|---|
"freezeAll" |
"constant"\"freeze" |
Freezes all symbols defined in the current scope. (After calling this) |
"elevateWarnings" |
"ew"\"warningsarebad" |
This will force all warnings to throw a fatal error instead of print. |
"suppressWarnings" |
"sw"\"fuckWarnings" |
Supresses All warnings, effectively ignoring them. |
"strict" |
The same as enabling "freezeAll" and "elevateWarnings" |
example:
scope("freezeAll")!
kwenza af(a) ->
khutla a!
<~
af <- 10! @ Errors as the variable af cannot be written to.
scope("ew")!
@* depr $> This fucntion is deprecated.
kwenza af(a) ->
khutla a!
<~
af()! @ Errors as the usual deprecation warning is now a fatal error. (Crashes the interpreter)
Nerd Corner
Honestly just a bunch of classes where edited to accommodate the new function.
And also the new ScopeConfig class that holds... you guessed it... The scope config!!!
Full Changelog: v4.1.0...v4.1.1