radian628 / desmoscript

Desmos scripting language and successor to LISPsmos.
101 stars 8 forks source link

Redo `import script`s #27

Open radian628 opened 1 year ago

radian628 commented 1 year ago

In their current form, import scripts 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.

radian628 commented 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!"