SlickEdit Community

Archived Read Only Forums => SlickEdit 2014 v19 beta => Topic started by: jporkkahtc on September 24, 2014, 05:48:36 pm

Title: History question ... whats the deal with - vs _ ?
Post by: jporkkahtc 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 :_)

Title: Re: History question ... whats the deal with - vs _ ?
Post by: mwb1100 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.
Title: Re: History question ... whats the deal with - vs _ ?
Post by: Clark 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.