radon-project / radon

The Radon Programming Language
https://radon-project.github.io
GNU General Public License v3.0
23 stars 3 forks source link

Import System Enhancement Proposal. (REP-3) #52

Open Almas-Ali opened 7 months ago

Almas-Ali commented 7 months ago

Couple of things are going to be changed with this proposal. Currently we have include keyword to handle imports.

import stdlib
import "/from/path"

Example:

from stdlib import module
from "any/path" import my_functions
from egg import chicken as chicks

Also, only import will be valid syntax.

import library
import "module/path"

Example:

import module
module.function()
module.Class(something).method()

Example:

from module import function as my_function
import "from/path" as library
import Library as lib

On any changes this issue will be updated.

Almas-Ali commented 6 months ago

As we are planning to make it most developer friendly language, we are going to replace include with import.

Almas-Ali commented 5 months ago

Added as keyword support #142