radon icon indicating copy to clipboard operation
radon copied to clipboard

Import System Enhancement Proposal. (REP-3)

Open Almas-Ali opened this issue 1 year ago • 2 comments

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

  • [x] We will replace include with import.
import stdlib
import "/from/path"
  • [ ] #133

Example:

from stdlib import module
from "any/path" import my_functions

Also, only import will be valid syntax.

import library
import "module/path"
  • [x] #134

Example:

import module
module.function()
module.Class(something).method()
  • [x] Combining as with import statement.

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 avatar Apr 10 '24 16:04 Almas-Ali

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

Almas-Ali avatar Apr 22 '24 18:04 Almas-Ali

Added as keyword support #142

Almas-Ali avatar May 26 '24 19:05 Almas-Ali