There are a few I'm aware of:

  1. Rust-style use (multiple imports per statement, renaming items using as)
  2. Java-style import (single import per statement, no renaming (afaik))
  3. Zig-style let xlib = @import("xlib") (imports as assignments)
  4. C-style #include (no importing, just pastes the code of the named file)
you are viewing a single comment's thread
view the rest of the comments
[–] -1 points 2 weeks ago (3 children)

Python's work great.

Short, clear and flexible.

  • source
  • hideshow 3 child comments
  • [–] 1 point 2 weeks ago (2 children)

    someone above listed exactly why Python's is so bad. it's pretty bad compared to most other solutions, even ruby's, which isn't as good as modern solutions.

  • source
  • parent
  • hideshow 2 child comments