Programming languages ​​that use special characters

I am working on a general-purpose programming language. In addition to the modern requirements for Unicode support in strings and identifiers, I am considering the possibility of providing alternative spellings of some operators, in particular:

  • Relational ( for <= >= !=)

  • Bitwise and Setwise ( for & |)

  • Logical ( ¬for && || !)

  • Arrows ( for -> =>)

I know that APL and Fortress use special characters, and the former are often the butt of jokes about it, but both of them are very focused on academic and scientific use. Do special characters have any place in a modern, non-academic language?

+3
source share
8 answers

Do special characters take place in a modern, non-academic language?

Yes, but since on most desktops, support for special characters is still terrible (bad editors, bad fonts, you name it)

  • Better plan ahead ten years.
  • , , , ASCII.

: , , IDE .

, .. , ASCII . , Haskell.

+6

-, , , , . APL-. ( ).

/- .

+4

, , , IDE? , , ? unicode , , ( ?), . , , C (http://en.wikipedia.org/wiki/Digraphs_and_trigraphs#C)?: -)

+2

Scala. , .

< > :

for {
  word ← List("Hello", "World")
  character ← word
} println(character)

val square = (x: Int) ⇒ x * x

, Scala ASCII (.. <- =>).

+2

( ) LaTeX . , . , ASCII, , , .

+2

, , , ASCII, TI-BASIC, , // π , a ..

, -ASCII-, , !=, .

+1

. , , , , . , , { } ( ) " ? + *, .

0

, DSL , . , , . Scala . .

0

Source: https://habr.com/ru/post/1754668/


All Articles