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
      0
      ·
      8 days ago

      you can also tell them java cant handle.pointers. i have worked with a lot of backend c code using c#.

      not sure about the following but:

      can you control how a struct is handled in memory in java? (had tto do this with a c# front end calling a credit card verifyling service/library written in c++)

      do they have value types?