Skip to content

Qualified Name Scoping vs Class Member Scoping for struct members in language without block scope. Plus other questions (VS Code extension for existing SCL language) #1612

Answered by msujew
BjAlvestad asked this question in Q&A
Discussion options

You must be logged in to vote

Hey @BjAlvestad,

great question, I think we can probably do a better job at outlining the different uses cases in which you use FQN (fully qualified name) vs class member scoping. Right now the explanation is fairly technical with little pro & con arguments for each type of scoping.

Generally, I always try to recommend using class member scoping (assuming it is applicable), as there are multiple benefits to it compared to FQN scoping. These benefits are mainly concerning some LSP features like finding and going to references or stuff like auto completion. Most languages simply work better when using class member scoping. FQN scoping works best for languages that statically expose their el…

Replies: 1 comment 2 replies

Comment options

You must be logged in to vote
2 replies
@BjAlvestad
Comment options

@msujew
Comment options

Answer selected by BjAlvestad
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants