Calamity210 / BirbLang

Minimal Bird programming language curated to help new contributers delve into OSS

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Add `use` and not pollute namespace

Andy-Python-Programmer opened this issue · 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! :)