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. The new GOTO Statement?

The new GOTO Statement?

Scheduled Pinned Locked Moved The Lounge
questionlinqhardwarealgorithmscollaboration
82 Posts 29 Posters 90 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 Kevin Marois

    Steve#2 wrote:

    And it's exactly that type of scenario the "var" keyword was made for

    What "scenerio" is that? You don't want to type more than you have to, so you leave it to the next developer to figure out what the type is?

    If it's not broken, fix it until it is

    S Offline
    S Offline
    samuellis
    wrote on last edited by
    #81

    What developer would not know the type of stuff if they saw this?

    var stuff = new Dictionary<int, List<Vec3<float>>>();

    1 Reply Last reply
    0
    • S Steve 2

      ah, you mean the using ^^ Haven't seen this usage of it, wow, yet another meaning of the keyword "using", I think now that's quite an abuse... (language design wise)

      K Offline
      K Offline
      Keith Badeau
      wrote on last edited by
      #82

      I agree, using was probably a poor choice given it already has a couple of definitions. A typedef would be a better choice, but then again my first languages were C and C++ so I am biased.

      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