6
Comments
  • 0
    Does your language not have target typed new.

    Intent intent = intent()
    Startactivity(intent)
  • 1
    It’s only painful if you don’t know what you are doing. Reference Types are beautiful.

    Right side “Intent()” allocates memory for an instance. Left side “Intent” is used to store the reference of the instance in the “intent” variable. What’s so painful in this? Or is it the “startActivity(intent)” that’s painful?

    Alright, after writing all this, I realised people are allowed to have opinions. So if it’s painful for you, then it fucking is!

    Sorry for my behaviour, world!
  • 1
    I suppose that’s Java. Not using type inference is indeed painful.
  • 0
    You can do,
    startActivity(new Intent());
  • 1
Add Comment