Re: The @ symbol

Tech-Archive recommends: Repair Windows Errors & Optimize Windows Performance



Brian Gideon <briangideon@xxxxxxxxx> wrote:
In addition to what others have said it can also be used on identifiers
to allow language keywords as names. It's not something you see very
often though. For example, a VB.NET developer could decide that the
identifier "sealed" would be a good name for a property not knowing
that it is a keyword in C#. A C# developer using the VB.NET code would
need to qualify it with an @.

Of course, anyone following the .NET naming conventions would
automatically avoid all C# keywords because all keywords in C# are in
lower-case, and all non-private members in the .NET naming conventions
are PascalCased :)

--
Jon Skeet - <skeet@xxxxxxxxx>
http://www.pobox.com/~skeet Blog: http://www.msmvps.com/jon.skeet
If replying to the group, please do not mail me too
.



Relevant Pages

  • Re: error C2065: WM_NCMOUSELEAVE : undeclared identifier
    ... Have you tried to google for these keywords? ... in header files, ... The earlier developer sits in another town and he has no ...
    (microsoft.public.win32.programmer.kernel)
  • Re: keyword capitalization -- current practice
    ... for identifiers and all caps for language keywords, with the latter handled automagically by emacs. ... You can access it via the menu under Options>> Customize Emacs>> Browse Customization Groups. ... Then the F90 mode is available under Programming>> Languages>> F90, with the specific setting named F90-Auto-Keyword-Case. ... some earlier versions of the F90-mode elisp file don't pick up all of the F95 keywords. ...
    (comp.lang.fortran)
  • Re: PL/I string representations
    ... >> also language keywords, you need to have your head bored for the ... but I don't think what you wrote differs ... with the statement that it does not enhance program readability. ...
    (comp.programming)
  • Re: PL/I string representations
    ... > also language keywords, you need to have your head bored for the ... One of the principal reasons for not reserving keywords ... of keywords when writing programs, ...
    (comp.programming)