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
CODE PROJECT For Those Who Code
  • Home
  • Articles
  • FAQ
Community
A

AncientCodeslinger

@AncientCodeslinger
About
Posts
5
Topics
0
Shares
0
Groups
0
Followers
0
Following
0

Posts

Recent Best Controversial

  • Poor var (C#)
    A AncientCodeslinger

    Yes, we would. All sorts of things would break if something declared as object became something else. Something else can be assigned to it, but that's not the same thing. In fact anything can be assigned to it. That's the point.

    The Lounge csharp c++ com discussion

  • Poor var (C#)
    A AncientCodeslinger

    PIEBALDconsult wrote:

    Hmmm... what if object had worked like var to begin with?

    Then we would need something that worked like object.

    The Lounge csharp c++ com discussion

  • Poor var (C#)
    A AncientCodeslinger

    ~Anders wrote:

    That way, you're not repeating yourself...

    ... and if I have a box of rocks, the label just says rocks.

    The Lounge csharp c++ com discussion

  • Using Else with blank If
    A AncientCodeslinger

    If that's how you use booleans, you might as well just use an integer set to 1 or 0 or a string set to "Y" or "N" (or "True" or "False"). How about: somethingIsWrong = (type <> "GOOD" AndAlso type <> "Cool") With a variable name that clearly expresses the condition represented by the boolean, the comparison to True or False becomes clearly redundant.

    The Weird and The Wonderful linux help

  • Using Else with blank If
    A AncientCodeslinger

    Both examples make me shudder. Why would you compare a boolean to True or False? It IS true or false.

    The Weird and The Wonderful linux help
  • Login

  • Don't have an account? Register

  • Login or register to search.
  • First post
    Last post
0
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups