Open radian628 opened 1 year ago
This brings up another problem: How should I handle error messages for macros that are imported from the initial call to the compiler API? I think I'll add an import fromapi
declaration. That way, I can create custom error messages that say something like "define a type signature for this!"
In their current form,
import script
s are quite limiting because they don't allow importing other files. They also don't play nicely with TypeScript, among many other issues. The best way of fixing this is just to switch away from using them entirely and instead encourage patterns like importing libraries directly into Desmoscript from the initial call to the compiler.