a = (123 + 0.456)
. You can see lang3 at github.com/FinnE145/Lang3 or try it out at lang3.fmje.dev (once I get that working).dynamic
C# classes to automatically generate a function for each error type by name. However, after much experimentation, including creating my own argument handling for a variety of flexible overloads, dynamic
was simply too slow (54x slower than the usual static class!). I ended up switching back to traditional functions, and created a comprehensive set of overloads and used an enum to make throwing errors easy but following best practices. After much debugging, my error system is ready to show comprehensive and beautiful errors to the users of my language, while making it easy for me to raise them in a customizable manner. The function is designed to be expandable, so I can easily add features like stack traces later on.
To check out and use Lang3 (placeholder name), join the #lang3 channel and read the canvas for more information about the project. You can also check out my GitHub repo.