Results 1 to 4 of 4

Thread: {$define}

Threaded View

Previous Post Previous Post   Next Post Next Post
  1. #4
    PGD Staff / News Reporter phibermon's Avatar
    Join Date
    Sep 2009
    Location
    England
    Posts
    524
    No you can't do things like that... well, perhaps you can but it's not a good idea, do you want others to understand your code? make them hunt for the defines just to check on types etc? plus I bet it causes a nightmare when debugging etc. "was that an array of words or longs? *check*" compared to "that's definitely an array of words, because that's what's written". You really shouldn't care about how the code looks to your eyes, it shouldn't even be the least of your concerns.

    It's the structure that's beautiful, the designs that are elegant - it transcends mere syntax

    And replacing 'not' with '~' goes against everything that Pascal was designed for. It uses English words for a reason, your brain will process them faster than symbols.

    You can scan really quickly over Pascal code, you have to keep a very careful eye out when trying to scan even slowly over C++ code (unless you do it every day for a living and even then case sensitivity is really not helpful! our brains don't take note of upper/lower variations in the same way it does the word itself, mistakes *will* be made that aren't even possible in pascal)
    Last edited by phibermon; 09-07-2013 at 08:10 PM.
    When the moon hits your eye like a big pizza pie - that's an extinction level impact event.

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •