|
|
|
|
|
by scotty79
685 days ago
|
|
What does | solve? They are also using : ; , and a new line. Also ' and << >> that I have no idea how to type. They are using both :~ and :: for type hints. In none of the languages I've seen that was necessary or useful. I think the problem they were solving was ... we really want to be able to cram everything into one line, so even if you split lines you might just as well still use the same characters despite them being unnecessary then. |
|
It's a general mechanism to associate an expression with "extra information" that can be used elsewhere (at compile time).
One can for example using static information to implement dot notation for an object system. Using static information, one can push name resolution from runtime to compile time.
The important part is that users of Rhombus can use the mechanism for tracking static information specific for their programs.
It will be exciting to see the creative uses of this mechanism in the future.
https://docs.racket-lang.org/rhombus/static-info.html