Questions tagged [identifiers]

For questions about the names attached to user-defined or language-defined types, variables, or functions, known as identifiers.

Filter by
Sorted by
Tagged with
24 votes
8 answers

Pros and cons of semantically-significant capitalization

In Go, capitalized identifiers are public (exported), while lowercase identifiers are private (within the package it's defined in). Most other programming languages don't have this sort of semantic ...
bigyihsuan's user avatar
  • 1,663
5 votes
3 answers

Types and variables in a different namespace

What would it take to design a language that permitted construct such as below? int int = 10; Such a language would need to be able to infer contextually whether a ...
user16217248's user avatar
  • 7,535
15 votes
7 answers

What Unicode character categories should be allowed in identifiers?

When implementing Unicode identifiers, I'm never sure what characters should be allowed. For example, this is the list of categories: Control: C Letters: ...
Rydwolf Programs's user avatar
7 votes
2 answers

What are the pros and cons of more permissive identifier character sets?

Most languages have rules for identifiers similar to the following: Must start with a letter or underscore All characters after the first can be a letter, number, or underscore Many languages add ...
Rydwolf Programs's user avatar
7 votes
2 answers

Are there any technical limitations against adding anonymous functions in C?

An anonymous function behaves the same as a regular function with no identifier attached. One could be passed as a callback or stored in a function pointer variable. In C++ they can be written as ...
user16217248's user avatar
  • 7,535