|
|
|
|
|
by soegaard
683 days ago
|
|
The syntax `expr :~ annot` is used to annotate the expression with static information. This is different from type annotations. 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 |
|
Compiler can tell if a thing is static or dynamic and apply the correct behavior. Why would I ever want to check static thing only dynamically and why would I ever want to try statically check dynamic type if not by mistake?
If programmer doesn't really have a real choice why make him choose which buttons to press?