This suggestion has been discussed at Slack. We have decided to use #"c" as notation because we wanted to allow `'` in the beginning of identifiers like in SML and F*. In particular, we wanted to allow users to use 'a 'b 'c for naming type parameters like in SML. However, nobody used this notation. In the Lean standard library, we are using greek letters for naming type parameters. So, there is no real motivation for the ugly #"c" syntax.
12 lines
209 B
Text
12 lines
209 B
Text
import system.io
|
|
open io
|
|
#check 'a'
|
|
|
|
#eval 'a'
|
|
#eval '\n'
|
|
#eval '\\'
|
|
variable [io.interface]
|
|
#eval put_str (list.cons '\\' "aaa")
|
|
#eval put_str ['\n']
|
|
#eval put_str ['\n']
|
|
#eval put_str (list.cons '\'' "aaa")
|