Tim's Lemmy
  • Communities
  • Create Post
  • heart
    Support Lemmy
  • search
    Search
  • Login
  • Sign Up
LiamTheBox@lemmy.world to Greentext@sh.itjust.works · 10 months ago

Anon tries programming in Java

lemmy.world

external-link
message-square
227
link
fedilink
1
external-link

Anon tries programming in Java

lemmy.world

LiamTheBox@lemmy.world to Greentext@sh.itjust.works · 10 months ago
message-square
227
link
fedilink
  • pivot_root@lemmy.world
    link
    fedilink
    arrow-up
    0
    ·
    edit-2
    10 months ago

    I haven’t kept up with recent Java developments, but with Go, you’re out of luck. Interface implementations are—for both better and worse—completely implicit.

    Edit: For Java, it still appears to be that you’re stuck designing around the language: https://stackoverflow.com/questions/19111090/does-java-support-explicit-interface-implementation-like-c

    • ඞmir@lemmy.ml
      link
      fedilink
      arrow-up
      0
      ·
      10 months ago

      He mentioned C#, which does let you explicitly choose to implement same-name functions of two interfaces with different code

      • pivot_root@lemmy.world
        link
        fedilink
        arrow-up
        0
        ·
        edit-2
        10 months ago

        For some reason, my brain inserted a “like” before “in C#”, and answered the question of “can’t you use explicit interfaces like in C#.”

Greentext@sh.itjust.works

greentext@sh.itjust.works

Subscribe from Remote Instance

Create a post
You are not logged in. However you can subscribe from another Fediverse account, for example Lemmy or Mastodon. To do this, paste the following into the search field of your instance: [email protected]

This is a place to share greentexts and witness the confounding life of Anon. If you’re new to the Greentext community, think of it as a sort of zoo with Anon as the main attraction.

Be warned:

  • Anon is often crazy.
  • Anon is often depressed.
  • Anon frequently shares thoughts that are immature, offensive, or incomprehensible.

If you find yourself getting angry (or god forbid, agreeing) with something Anon has said, you might be doing it wrong.

Visibility: Public
globe

This community can be federated to other instances and be posted/commented in by their users.

  • 17 users / day
  • 256 users / week
  • 1.18K users / month
  • 4.32K users / 6 months
  • 0 local subscribers
  • 7.04K subscribers
  • 1.66K Posts
  • 59.6K Comments
  • Modlog
  • mods:
  • 🍹Early to RISA 🧉@sh.itjust.works
  • UI: unknown version
  • BE: 0.19.12
  • Modlog
  • Instances
  • Docs
  • Code
  • join-lemmy.org