Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. The Lounge
  3. No I haven't been waiting for this.

No I haven't been waiting for this.

Scheduled Pinned Locked Moved The Lounge
csharpcomquestionannouncementcode-review
2 Posts 2 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • J Offline
    J Offline
    jschell
    wrote on last edited by
    #1

    Following discusses a new feature in C# which as it looks to me, just means code can be written in even more obscure ways to no point. It allows one to implicitly specify a constructor. Refactor your C# code with primary constructors - .NET Blog[^] I have been doing this a long in multiple OO languages and I can say for certain that I never, not even once, wished that I could write code that would mingle the constructor with a method call. Seems like a perfect way for someone to decide to make modifications after the fact without refactoring but by trying to hack a way into using the same code.

    A 1 Reply Last reply
    0
    • J jschell

      Following discusses a new feature in C# which as it looks to me, just means code can be written in even more obscure ways to no point. It allows one to implicitly specify a constructor. Refactor your C# code with primary constructors - .NET Blog[^] I have been doing this a long in multiple OO languages and I can say for certain that I never, not even once, wished that I could write code that would mingle the constructor with a method call. Seems like a perfect way for someone to decide to make modifications after the fact without refactoring but by trying to hack a way into using the same code.

      A Offline
      A Offline
      Alister Morton
      wrote on last edited by
      #2

      I agree, I'm slightly concerned that it doesn't bring anything useful to the party, rather it muddies the water. Maybe I'm just a stick in the mud.

      1 Reply Last reply
      0
      Reply
      • Reply as topic
      Log in to reply
      • Oldest to Newest
      • Newest to Oldest
      • Most Votes


      • Login

      • Don't have an account? Register

      • Login or register to search.
      • First post
        Last post
      0
      • Categories
      • Recent
      • Tags
      • Popular
      • World
      • Users
      • Groups