Thread: i <3 this...but not really..

  1. #16
    Devil's Advocate SlyMaelstrom's Avatar
    Join Date
    May 2004
    Location
    Out of scope
    Posts
    4,079
    Quote Originally Posted by Mario F. View Post
    Yeah. rags_to_riches can't probably program in the Whitespace programming language. But can program in assembly by tabbing. He rocks!
    Funny that you say that as I was just about to mention that with tabs you could easily program in C or C++ or most languages as tabs (or line feeds) are valid white space.

    This, of course, is logic that only applies under the delusion that you can't hit the space bar with any other finger.

    Code:
    #include    <iostream>
    
    int main(int    argc,   char   *argv[])
    {
        std::cout   <<  "This\040compiles\040fine.";
        return  0;
    }
    I can't off the top of my head think of any syntax that would definitely require a space in C++.
    Sent from my iPadŽ

  2. #17
    (?<!re)tired Mario F.'s Avatar
    Join Date
    May 2006
    Location
    Ireland
    Posts
    8,446
    The thought occurred to me. And technically there is no reason not to. C++ treats all whitespace the same. But could become a readability problem with some of the more esoteric C++ syntax. I'd probably think of reducing the tab width to 2 characters. Where I think it would suck would be sharing code or working in a team.

    In any case, were I to lose my thumbs, I'd probably map the capslock key to the space key.

    Edit: I just did a test to see if this could work. Used SharpKeys and did the mapping from CapsLock to Space (reboot, don't logoff). Works pretty good with the advantage that the mapping disables the capslock LED functionality on your keyboard. So yeah, I can lose my thumbs. No worries.
    Last edited by Mario F.; 06-04-2011 at 04:02 PM.
    Originally Posted by brewbuck:
    Reimplementing a large system in another language to get a 25% performance boost is nonsense. It would be cheaper to just get a computer which is 25% faster.

  3. #18
    Registered User
    Join Date
    Dec 2006
    Location
    Canada
    Posts
    3,229
    It'd be hard to write hello world.

  4. #19
    Master Apprentice phantomotap's Avatar
    Join Date
    Jan 2008
    Posts
    5,108
    Might as well add some pink ponies while we at it.
    I could not possibly agree more.

    This pony has my vote: Pinkie Pie!

    Anyway, if hearts offend you so strongly, your subconscious is hiding something from you.

    *giggle*

    Soma ^_^;
    Last edited by phantomotap; 06-04-2011 at 10:02 PM.

Popular pages Recent additions subscribe to a feed