• ChrisLicht@lemm.ee
    link
    fedilink
    English
    arrow-up
    4
    ·
    1 year ago

    I’m not smart enough to know, but what kind of use case(s) do you imagine for this?

    • snek_boi@lemmy.mlOP
      link
      fedilink
      arrow-up
      3
      arrow-down
      1
      ·
      1 year ago

      I know encapsulation is desirable in part because of security. I figured something similar could happen by removing the ability to import anything from another program. However, I struggled to think about other situations in which no imports were desirable, and so I wondered…

      • Ethan@programming.dev
        link
        fedilink
        English
        arrow-up
        3
        ·
        1 year ago

        There are certainly situations where it would be valuable to be able to place limits on what can be imported, but I can’t imagine trying to work with a language that was completely devoid of imports. Because that would mean 100% of your source would have to be in a single file, which sounds absolutely awful for anything but the most trivial applications.