• Visitors can check out the Forum FAQ by clicking this link. You have to register before you can post: click the REGISTER link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below. View our Forum Privacy Policy.
  • Want to receive the latest contracting news and advice straight to your inbox? Sign up to the ContractorUK newsletter here. Every sign up will also be entered into a draw to WIN £100 Amazon vouchers!

C# 4.0

Collapse
X
  •  
  • Filter
  • Time
  • Show
Clear All
new posts

    C# 4.0

    I have heard on the grapevine that C# 4.0 is going to be called YODA.

    public void Main(string[] args) {

    Console.WriteLine(“Hello World”);

    }



    becomes

    (args of string many are they) Main is what they seek yet return they do not.

    Brace you must

    Written it is, the Console. “Hello World”




    hmmmmmmm

    #2
    Originally posted by DimPrawn
    I have heard on the grapevine that C# 4.0 is going to be called YODA.

    public void Main(string[] args) {

    Console.WriteLine(“Hello World”);

    }



    becomes

    (args of string many are they) Main is what they seek yet return they do not.

    Brace you must

    Written it is, the Console. “Hello World”




    hmmmmmmm

    Ah yes, C#, for all those out there that can't master C++!

    Comment


      #3
      Originally posted by DimPrawn
      (args of string many are they) Main is what they seek yet return they do not.

      Brace you must

      Written it is, the Console. “Hello World”
      Isn't that VB?
      Will work inside IR35. Or for food.

      Comment


        #4
        Originally posted by Churchill
        Ah yes, C#, for all those out there that can't master C++!
        Now ANSI C I like, but C++ is the product of an unwholesome and tormented mind.

        The product of a mind of a man that would lie awake night after night and could only get it up by thinking about 'polymorphism' and 'inherritance' and (ugh!) 'encapsulation' when his poor wife was lying awake at his side frigging herself unhappily to orgasm and a fretful slumber.

        Watch out for that Barney Sodastream guy!

        You've come right out the other side of the forest of irony and ended up in the desert of wrong.

        Comment


          #5
          Elizabethan OOP

          //
          // Henry IIIV's first program
          //

          I return nothing except unto the VOID (an pretty Integral number x) {
          if (x be less than weight_of('an quail\'s egg) {
          sayeth("thine x be a very small thing indeed");
          }
          else {
          sayeth("verily, thine x be a thing of some substance");
          }
          }

          behead(x);
          // End Execution

          You've come right out the other side of the forest of irony and ended up in the desert of wrong.

          Comment


            #6
            Whenever anyone asks my thoughts on C++ I just answer that that Barney Sodastream guy is a Dane from Aarhus. It is enough of an answer I feel.

            Same goes for Java and C# (different guy obviously).
            Insanity: repeating the same actions, but expecting different results.
            threadeds website, and here's my blog.

            Comment


              #7
              Originally posted by DimPrawn
              I have heard on the grapevine that C# 4.0 is going to be called YODA.

              public void Main(string[] args) {

              Console.WriteLine(“Hello World”);

              }
              AFAIK at the moment Main function (to be automatically run) in C# has to be static member of the class, think attribute [STAThread] is optional, but maybe its not.

              What it means in effect is that C# 4.0 will have AI to determine such functions without having programmer to specify them explicitly.

              Comment


                #8
                Originally posted by AtW
                What it means in effect is that C# 4.0 will have AI to determine such functions without having programmer to specify them explicitly.
                You mean like the paper clip? Oh goody.

                Comment


                  #9
                  C#4 will indeed have a new syntax....


                  protected class BusinessPlan
                  {

                  public long yourPay=50000;
                  private int myPay = 500;

                  private void Agenda ()
                  {
                  for (int iIsGreatestProgrammerInTheWorldIsntIt=0; myPay < yourPay;
                  jobsOverseas++)
                  {
                  Console.WriteLine ("Check out the special pricing for India for Microsoft
                  products, training, and other freebies");
                  yourPay--;
                  myPay--;
                  iIsGreatestProgrammerInTheWorldIsntIt=0;
                  }
                  }
                  }
                  Vieze Oude Man

                  Comment


                    #10
                    Well, jobsOverseas is not declared and Agenda() will never run as its private and no other functions in class use it. The funniest thing however is that loop is going to run much longer than you probably think...

                    Comment

                    Working...
                    X