Maksym NikulyakMaksym Nikulyak

My feedback

  1. 2 votes
    Vote
    Sign in
    Check!
    (thinking…)
    Reset
    or sign in with
    • facebook
    • google
      Password icon
      I agree to the terms of service
      Signed in as (Sign out)
      You have left! (?) (thinking…)
      1 comment  ·  Visual Studio IDE » Languages - C#  ·  Flag idea as inappropriate…  ·  Admin →
      Maksym NikulyakMaksym Nikulyak commented  · 

      Or just:

      condition ? variable_A : variable_B = expression

      Maksym NikulyakMaksym Nikulyak shared this idea  · 
    • 7 votes
      Vote
      Sign in
      Check!
      (thinking…)
      Reset
      or sign in with
      • facebook
      • google
        Password icon
        I agree to the terms of service
        Signed in as (Sign out)
        You have left! (?) (thinking…)
        3 comments  ·  Visual Studio IDE » Languages - C#  ·  Flag idea as inappropriate…  ·  Admin →
        Maksym NikulyakMaksym Nikulyak supported this idea  · 
        Maksym NikulyakMaksym Nikulyak commented  · 

        I support this idea; only, to give such loop control statements just enough power, I would allow them to use only the *specialized* (i.e., loop) labels, rather than the existent, general-purpose ones.

        Thinking further of such loop labels, I would suggest that, maybe, they should be made an optional part of the loop syntax - e.g., like this:

        foreach (string fileName in fileList) as MyFileLoop {...}

      • 38 votes
        Vote
        Sign in
        Check!
        (thinking…)
        Reset
        or sign in with
        • facebook
        • google
          Password icon
          I agree to the terms of service
          Signed in as (Sign out)
          You have left! (?) (thinking…)
          12 comments  ·  Visual Studio IDE » Languages - C#  ·  Flag idea as inappropriate…  ·  Admin →
          Maksym NikulyakMaksym Nikulyak commented  · 

          DaryI, I support your idea; only, to give such loop control statements just enough power, I would allow them to use only the *specialized* (i.e., loop) labels, rather than the existent, general-purpose ones.

          Thinking further of such loop labels, I would suggest that, maybe, they should be made an optional part of the loop syntax - e.g., like this:

          foreach (string fileName in fileList) as MyFileLoop {...}

          Maksym NikulyakMaksym Nikulyak supported this idea  · 
          Maksym NikulyakMaksym Nikulyak commented  · 

          I very much like the amendment that Viktor Zakharov has suggested; to me, it's the best of the proposed variants, and 100% robust on its own right.
          And I like the offered syntax, "break for[n]"

          Maksym NikulyakMaksym Nikulyak commented  · 

          Re comment by Pascal Craponne:

          > this feature already exists and is called goto :)
          > (which in this case is as good as break)

          Dear Sir, we all dislike 'goto' for its enormous power, don't we? For this reason, 'goto' is much worse than 'break' - and in this case, too...

          I stand for solving any problem with just the right means - and, from this viepoint, introducing 'break(n)' would be just right. More so because, as much as I understand the phylosophy of C#, this language praises "just right remedies" more than it does the size of the language.

          Maksym NikulyakMaksym Nikulyak commented  · 

          Re comment by Andras Daniel Toth:

          Thank you, Sir, your approach does solve the issue.
          But... Isn't it posing a bigger one? - I mean that introducing a function may bring a greater overhead (both during the execution time and the programming time;-), than using just one boolean flag variable to break the outer loops. - Especially so when the inner loops are "variable intensive".

          Maksym NikulyakMaksym Nikulyak shared this idea  · 
        • 1 vote
          Vote
          Sign in
          Check!
          (thinking…)
          Reset
          or sign in with
          • facebook
          • google
            Password icon
            I agree to the terms of service
            Signed in as (Sign out)
            You have left! (?) (thinking…)
            0 comments  ·  Visual Studio IDE » Languages - C++  ·  Flag idea as inappropriate…  ·  Admin →
            Maksym NikulyakMaksym Nikulyak shared this idea  · 
          • 1 vote
            Vote
            Sign in
            Check!
            (thinking…)
            Reset
            or sign in with
            • facebook
            • google
              Password icon
              I agree to the terms of service
              Signed in as (Sign out)
              You have left! (?) (thinking…)
              0 comments  ·  Visual Studio IDE » Languages - C#  ·  Flag idea as inappropriate…  ·  Admin →
              Maksym NikulyakMaksym Nikulyak shared this idea  · 
            • 1 vote
              Vote
              Sign in
              Check!
              (thinking…)
              Reset
              or sign in with
              • facebook
              • google
                Password icon
                I agree to the terms of service
                Signed in as (Sign out)
                You have left! (?) (thinking…)
                1 comment  ·  Visual Studio IDE » Languages - C++  ·  Flag idea as inappropriate…  ·  Admin →
                Maksym NikulyakMaksym Nikulyak shared this idea  · 
              • 1 vote
                Vote
                Sign in
                Check!
                (thinking…)
                Reset
                or sign in with
                • facebook
                • google
                  Password icon
                  I agree to the terms of service
                  Signed in as (Sign out)
                  You have left! (?) (thinking…)
                  0 comments  ·  Visual Studio IDE » Languages - C#  ·  Flag idea as inappropriate…  ·  Admin →
                  Maksym NikulyakMaksym Nikulyak shared this idea  · 

                Feedback and Knowledge Base