20
iamkrid
7y

I’m new to C# and Visual Studio gave me an option to change the way I wrote the main function.

It gave me this.

Does this remind you of fat arrow function in JavaScript?

Comments
  • 1
    I mean, if your program does one thing - why the fuck not lol.
  • 1
    No, the srrow functions in javascript remind me of the lambda functions in other languages.
  • 4
    Yesterday Rider IDE also suggested a rewrite for my code:

    GameObject g = SomeFunction();
    g = g != null ? g : null;
  • 0
    For the main function it's obviously bullshit. But for getter-properties it's nice.
  • 1
    @Codex404 that is just ugly
  • 1
    I'm also new to C# .. It's the language our group currently studying.
  • 1
    @CWins my main functions are usually one line so its not that bullshit
Add Comment