Thread: Thinking about terminology

  1. #1
    Devil's Advocate SlyMaelstrom's Avatar
    Join Date
    May 2004
    Location
    Out of scope
    Posts
    4,079

    Thinking about terminology

    Specifically this operator ( << ) and this operator ( >> ) otherwise properly known as Insertion and Extraction, respectively. My first programming teacher, a few semesters ago decided to use the terminology "put to" and "get from" for those operators when teaching the class. While the names are sensible given their operations, I was wondering if you'd ever heard that usage before, because I know I've used that to some very respectable programmers that I've met. Did I sound like an jackass using those terms?
    Last edited by SlyMaelstrom; 02-25-2006 at 01:33 AM.
    Sent from my iPadŽ

  2. #2
    Supermassive black hole cboard_member's Avatar
    Join Date
    Jul 2005
    Posts
    1,709
    I think BS uses the term "put to" in The Design and Evo. of C++ - I remember seeing it in there somewhere.
    Good class architecture is not like a Swiss Army Knife; it should be more like a well balanced throwing knife.

    - Mike McShaffry

  3. #3
    Registered User Frobozz's Avatar
    Join Date
    Dec 2002
    Posts
    546
    Insertion and extraction sound a bit too technical. If I ever gave them a name I'd probably call them either push/pull or send/receive. :P

  4. #4
    Yes, my avatar is stolen anonytmouse's Avatar
    Join Date
    Dec 2002
    Posts
    2,544
    I know them a left-shift and right-shift. The question is, when you overload an operator, do you also overload its name?

  5. #5
    Code Goddess Prelude's Avatar
    Join Date
    Sep 2001
    Posts
    9,897
    I could never get used to variations of "insertion" and "extraction", so I say (sometimes privately) that << is output and >> is input. Then you have the output operator and the input operator, and beginners have a much easier time of following you.
    My best code is written with the delete key.

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Thinking of upgrading to linux...
    By Yarin in forum General Discussions
    Replies: 37
    Last Post: 07-24-2009, 11:40 AM
  2. Deadlock - graph/edge/cycle - help with terminology
    By patricio2626 in forum C++ Programming
    Replies: 4
    Last Post: 11-24-2006, 04:22 PM
  3. thinking about making a network traffic monitor
    By jimjamjahaa in forum C++ Programming
    Replies: 9
    Last Post: 10-13-2005, 11:38 AM
  4. Thinking of Modding Xbox. Don't know about Linux
    By Stan100 in forum Linux Programming
    Replies: 4
    Last Post: 05-30-2004, 04:51 PM
  5. Fluid Thinking
    By kermi3 in forum A Brief History of Cprogramming.com
    Replies: 27
    Last Post: 11-20-2002, 03:29 PM