Questions tagged [unicode]

For questions about supporting or implementing Unicode in a programming language, such as identifiers and string implementations. General Unicode questions are off-topic.

Filter by
Sorted by
Tagged with
-2 votes
1 answer

What are the tradeoffs around supporting Unicode keywords and tokens? [closed]

Is the mass adoption of Unicode tokens as operators in general-purpose programming languages ​​a good idea? How acceptable is such a language to ordinary users and developers? Background I want to ...
Aster's user avatar
  • 3,107
4 votes
2 answers

Supporting reasonably efficient high-level indexing for strings

I'm designing a language that I intend to be implemented on the .NET platform. To my understanding, the native string representation uses UTF-16, by storing an array of ...
Karl Knechtel's user avatar
12 votes
4 answers

Prior art on modeling characters of variable lengths

In some encodings such as UTF-8, characters are of variable length in bytes. It's a bit like a tagged union, but the exact size could be computed, so the next element in a string could follow ...
user23013's user avatar
  • 2,370
25 votes
6 answers

How have modern language designs dealt with Unicode strings?

Languages developed over the last fifteen years or so have been within the era where Unicode is ubiquitous, and so could design their core string types accordingly. There are a lot of new issues that ...
Michael Homer's user avatar
  • 12.2k
9 votes
3 answers

What vertical whitespace should be supported?

As a followup to PLDI's first question, about horizontal whitespace, what vertical whitespace (newlines) should be supported? I know of at least the following: Line feed (...
Rydwolf Programs's user avatar
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
6 votes
1 answer

How should programming languages handle updates to Unicode?

Occasionally, a new version of Unicode comes out, with new characters. This could introduce, for example, new whitespace characters, which may pose a problem for existing programs, for a number of ...
Rydwolf Programs's user avatar
23 votes
5 answers

What options in Unicode are there for balanced pairs of brackets like `(){}[]<>`?

My esolang involves the use of balanced brackets (){}[]<> to denote different scopes. However, unlike practical languages, all pairs of identical brackets ...
bigyihsuan's user avatar
  • 1,791
20 votes
3 answers

Which horizontal whitespace should be supported?

There seems to be three approaches to horizontal whitespace for separating tokens: Only tab and space: Bash, C, D, Dart, Go, Java, Lua, OCaml, Python, PHP, Perl, Ruby, Rust, Scala, Swift (also ...
Adám's user avatar
  • 3,138