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. Other Discussions
  3. The Insider News
  4. Welcome to C# 9.0

Welcome to C# 9.0

Scheduled Pinned Locked Moved The Insider News
csharpcomannouncement
4 Posts 4 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.
  • K Offline
    K Offline
    Kent Sharkey
    wrote on last edited by
    #1

    .NET blog[^]:

    C# 9.0 is taking shape, and I’d like to share our thinking on some of the major features we’re adding to this next version of the language.

    Now your programs can set a record!

    D W 2 Replies Last reply
    0
    • K Kent Sharkey

      .NET blog[^]:

      C# 9.0 is taking shape, and I’d like to share our thinking on some of the major features we’re adding to this next version of the language.

      Now your programs can set a record!

      D Offline
      D Offline
      Dan Neely
      wrote on last edited by
      #2

      My assessment of the changes: * init, data, with, etc - I don't make heavy use of the immutable types these are intended to support; but they all seem harmless and fit into the category of syntactic sugar that have over the last 15 years made C# so much less verbose than Java. :thumbsup: * Top level programs - I'd like to see a non-trivial example here, assuming this is capable of being used for non-trivial coding anyway (not clear how large its scope is). My immediate thought is skepticism that this should've been brought from REPLs to more general use. :^) * Improved pattern matching - again not a feature I use, but seems harmless to the broader language and should be nice where it is used. :thumbsup: * Improved target typing - having to cast the `null` in code like this `int? result = b ? 0 : null;` in the current language version is something that's always annoyed me. :thumbsup::thumbsup: All in all, it looks like a good update. My only complaint is that it's unlikely my current project will migrate from .net framework to net core in the short to medium term future to take advantage of any of the new features. :sigh: :doh:

      Did you ever see history portrayed as an old man with a wise brow and pulseless heart, weighing all things in the balance of reason? Is not rather the genius of history like an eternal, imploring maiden, full of fire, with a burning heart and flaming soul, humanly warm and humanly beautiful? --Zachris Topelius Training a telescope on one’s own belly button will only reveal lint. You like that? You go right on staring at it. I prefer looking at galaxies. -- Sarah Hoyt

      M 1 Reply Last reply
      0
      • K Kent Sharkey

        .NET blog[^]:

        C# 9.0 is taking shape, and I’d like to share our thinking on some of the major features we’re adding to this next version of the language.

        Now your programs can set a record!

        W Offline
        W Offline
        WaferFun
        wrote on last edited by
        #3

        This statement actually works...

        object what = "", the = 0;
        int f=5,ck=3;
        var addMoreTargetTyping =what??the??f*ck!;

        1 Reply Last reply
        0
        • D Dan Neely

          My assessment of the changes: * init, data, with, etc - I don't make heavy use of the immutable types these are intended to support; but they all seem harmless and fit into the category of syntactic sugar that have over the last 15 years made C# so much less verbose than Java. :thumbsup: * Top level programs - I'd like to see a non-trivial example here, assuming this is capable of being used for non-trivial coding anyway (not clear how large its scope is). My immediate thought is skepticism that this should've been brought from REPLs to more general use. :^) * Improved pattern matching - again not a feature I use, but seems harmless to the broader language and should be nice where it is used. :thumbsup: * Improved target typing - having to cast the `null` in code like this `int? result = b ? 0 : null;` in the current language version is something that's always annoyed me. :thumbsup::thumbsup: All in all, it looks like a good update. My only complaint is that it's unlikely my current project will migrate from .net framework to net core in the short to medium term future to take advantage of any of the new features. :sigh: :doh:

          Did you ever see history portrayed as an old man with a wise brow and pulseless heart, weighing all things in the balance of reason? Is not rather the genius of history like an eternal, imploring maiden, full of fire, with a burning heart and flaming soul, humanly warm and humanly beautiful? --Zachris Topelius Training a telescope on one’s own belly button will only reveal lint. You like that? You go right on staring at it. I prefer looking at galaxies. -- Sarah Hoyt

          M Offline
          M Offline
          markrlondon
          wrote on last edited by
          #4

          Dan Neely wrote:

          Top level programs - I'd like to see a non-trivial example here, assuming this is capable of being used for non-trivial coding anyway (not clear how large its scope is). My immediate thought is skepticism that this should've been brought from REPLs to more general use. :^)

          Even though this is 'only' syntactic sugar, it still strikes me as something quite revolutionary for C#. I am quite surprised. I don't think it would be an overstatement to call it a cultural shift of sorts. Yes, a more complete example would be interesting.

          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