Conversation
|
🤔🤔🤔 https://github.com/gfngfn/SATySFi/runs/3682988795?check_suite_focus=true#step:5:5926 |
|
|
This is my just two cents. Can this be implemented as a macro like Otherwise, is it possible to introduce more generic literal syntax (like Scala’s String Interpolation, C++’s User defined literals, Lisp-families’ read macros, SRFI-10) instead of one specific to For example, define a new syntax |
|
This is another my two cents. Another option would be “not to introduce a literal syntax for |
|
Thank you for pointing out the naming of the primitive functions. I explain why I introduced the literal syntax of the
Currently, I must do pattern matching with Unicode scalar value: |
|
Hmm, then can we introduce a macro function or with a new macro syntax Otherwise, we can extend matching with view patterns or extractors |
Close #407
I added
chartype and some functions.The
chartype usesUchar.ttype for implementation.ref: https://github.com/gfngfn/SATySFi/projects/1#card-54377937
List of added functions:
char-to-string : char -> stringchar-to-unicode-point : char -> intchar-of-unicode-point : int -> charchar-same : char -> char -> boolSee the
tests/char.satyfile for how to use them.