emacs-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Guidelines for the "symbol" syntax class


From: Stefan Monnier
Subject: Re: Guidelines for the "symbol" syntax class
Date: Sun, 03 Jan 2016 21:56:43 -0500
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/25.1.50 (gnu/linux)

> In c++-mode, `std::cout' is two separate symbols, so I'm going to follow
> that model.

>> A::B is the qualified name of a symbol

> Yes, and methods have qualified names like A::B#foo or A::B.bar, but we
> don't make `#' or `.' symbol constituents.

Right, I think in general you'll be better off to err on the side of
having Emacs symbols be "too short" (and hence having to grow them by
combining Emacs symbols with surrounding chars or surrounding Emacs
symbols) rather than having Emacs symbols be "too long" (and hence
having to parse the inside of symbols rather than treat them as "atomic"
identifiers).


        Stefan



reply via email to

[Prev in Thread] Current Thread [Next in Thread]