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. Building C# 8.0

Building C# 8.0

Scheduled Pinned Locked Moved The Insider News
csharppythonasp-netdotnetvisual-studio
5 Posts 5 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[^]:

    The current plan is that C# 8.0 will ship at the same time as .NET Core 3.0. However, the features will start to come alive with the previews of Visual Studio 2019 that we are working on.

    It's looking more and more Python-like all the time

    Yeah, kind of a dupe of a Lounge item. Hopefully you'll forgive me.

    I R B 3 Replies Last reply
    0
    • K Kent Sharkey

      .NET blog[^]:

      The current plan is that C# 8.0 will ship at the same time as .NET Core 3.0. However, the features will start to come alive with the previews of Visual Studio 2019 that we are working on.

      It's looking more and more Python-like all the time

      Yeah, kind of a dupe of a Lounge item. Hopefully you'll forgive me.

      I Offline
      I Offline
      ISanti
      wrote on last edited by
      #2

      I believe the comment about C# more and more Phyton-like is more of a joke than a serious statement. And I also believe there are many of us, C# programmers, waiting for the new features mentioned in the .NET blog post, but I would like the final release also incorporate the announced "records" and the "with" clause features.

      Sorry for my bad English

      1 Reply Last reply
      0
      • K Kent Sharkey

        .NET blog[^]:

        The current plan is that C# 8.0 will ship at the same time as .NET Core 3.0. However, the features will start to come alive with the previews of Visual Studio 2019 that we are working on.

        It's looking more and more Python-like all the time

        Yeah, kind of a dupe of a Lounge item. Hopefully you'll forgive me.

        R Offline
        R Offline
        Rob Grainger
        wrote on last edited by
        #3

        I'm a bit surprised they are effectively deprecating .NET Framework with this, as some of the new features won't work on .NET Framework, only on .NET Core. With such a major change, .NET Standard should at least get a major version bump to 3.0 rather than 2.1, to indicate potentially breaking changes, in accordance with Semantic Versioning.

        "If you don't fail at least 90 percent of the time, you're not aiming high enough." Alan Kay.

        1 Reply Last reply
        0
        • K Kent Sharkey

          .NET blog[^]:

          The current plan is that C# 8.0 will ship at the same time as .NET Core 3.0. However, the features will start to come alive with the previews of Visual Studio 2019 that we are working on.

          It's looking more and more Python-like all the time

          Yeah, kind of a dupe of a Lounge item. Hopefully you'll forgive me.

          B Offline
          B Offline
          Bernhard Hiller
          wrote on last edited by
          #4

          Quote:

          ... rely on new runtime enhancements, and we will not make those in the .NET Runtime 4.8 either. So this feature simply will not work on .NET Framework 4.8 ...

          What a great feature! And what about the features of .Net 6 which we use? Will all of them be supported by .NET Core 3.0? I doubt that... And what a nice code example:

          var area = figure switch
          {
          Line _ => 0,
          Rectangle r => r.Width * r.Height,
          Circle c => Math.PI * c.Radius * c.Radius,
          _ => throw new UnknownFigureException(figure)
          };

          Why is that bad code? I could ask such a question in a job interview. I want to see if the candidate understands basic OO concepts and the consequences of unclean code. (This code places the calculation of the area into an extra class, instead of providing a method in the interface of figure. Adding a new figure type means finding all such places. Of course we can expect many different implementations scattered all over the code base, ...)

          Oh sanctissimi Wilhelmus, Theodorus, et Fredericus!

          S 1 Reply Last reply
          0
          • B Bernhard Hiller

            Quote:

            ... rely on new runtime enhancements, and we will not make those in the .NET Runtime 4.8 either. So this feature simply will not work on .NET Framework 4.8 ...

            What a great feature! And what about the features of .Net 6 which we use? Will all of them be supported by .NET Core 3.0? I doubt that... And what a nice code example:

            var area = figure switch
            {
            Line _ => 0,
            Rectangle r => r.Width * r.Height,
            Circle c => Math.PI * c.Radius * c.Radius,
            _ => throw new UnknownFigureException(figure)
            };

            Why is that bad code? I could ask such a question in a job interview. I want to see if the candidate understands basic OO concepts and the consequences of unclean code. (This code places the calculation of the area into an extra class, instead of providing a method in the interface of figure. Adding a new figure type means finding all such places. Of course we can expect many different implementations scattered all over the code base, ...)

            Oh sanctissimi Wilhelmus, Theodorus, et Fredericus!

            S Offline
            S Offline
            Super Lloyd
            wrote on last edited by
            #5

            this was a contrived sample to show how the new switch expression works. while you remark about this particular expression being better handled with override and a common class is accurate, it misses the point.... further this handle the "not a figure" case, which overriding wouldn't! ;P and Line, obviously, has no need to implement area ....

            A new .NET Serializer All in one Menu-Ribbon Bar Taking over the world since 1371!

            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