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)
  • terabyterex@lemmy.world
    link
    fedilink
    arrow-up
    3
    ·
    3 days ago

    c# is delphi with some realized mfc lofty goals.

    first, microsoft liked delphi and hired the guy who created delphi to create c#

    second if you read an mfc book from the 90s that talks about history and goals, 6ou can see they wanted the .net framework

    • nebeker@programming.dev
      link
      fedilink
      English
      arrow-up
      1
      ·
      9 hours ago

      You know, I don’t know enough about Delphi. I’ve great good things, I should check it out, I guess it might be familiar.