BirbLang icon indicating copy to clipboard operation
BirbLang copied to clipboard

Add `use` and not pollute namespace

Open Andy-Python-Programmer opened this issue 5 years ago • 0 comments

Add use:

Syntax

use library.someClass.someFunction;
use library.someFunction;
use library.someVariable;

// Multiple use’s
use library.{someClass, someVar, someFunc};

Update grab to not pollute:

grab("somelib");

// To access the function
somelib.someFunc();

This is tbh p easy so this can be marked as a good first issue! :)

Andy-Python-Programmer avatar Oct 25 '20 04:10 Andy-Python-Programmer