Author Topic: History question ... whats the deal with - vs _ ?  (Read 1516 times)

jporkkahtc

  • Senior Community Member
  • Posts: 2075
  • Hero Points: 188
  • Text
History question ... whats the deal with - vs _ ?
« on: September 24, 2014, 05:48:36 pm »
All slick functions are like do_something_useful, but in some places they are spelled do-something-useful.
Not everyplace supports both, GotoSlickDefinition only supports _, and doesn't recognize -.
The command line always shows -, but allows you to type _.


Key binding shows the commands with -, but the description box seems to always show things with _.




Not that it really matters, it just bothers me :_)


mwb1100

  • Senior Community Member
  • Posts: 144
  • Hero Points: 13
Re: History question ... whats the deal with - vs _ ?
« Reply #1 on: September 24, 2014, 05:55:15 pm »
Not that it really matters

It matters to the extent that it's confusing to people (like me) who aren't Slick-C experts.  I thought that I came across information somewhere that '-' and '_' are interchangeable/equivalent in function names.  But maybe that was only for commands.

Clark

  • Moderator
  • Senior Community Member
  • *
  • Posts: 5467
  • Hero Points: 444
Re: History question ... whats the deal with - vs _ ?
« Reply #2 on: September 24, 2014, 05:59:53 pm »
Some of this is historical. Emacs used '-' for commands on the command line. Seemed reasonable at the time (26 years ago). '-' is easier to type than '_' and is easier to see/read. There's really not that big difference. Since '-' is valid for COBOL, the tagging must require you to specify '-' or '_' and won't convert.