3 ms·
Indeed, which is why I suggested an eDSL rather than a full-blown DSL. C# is decent at embedding domain-specific languages (fluent APIs are simple eDSLs and are
by naasking 3y ago
Indeed, which is why I suggested an eDSL rather than a full-blown DSL. C# is decent at embedding domain-specific languages (fluent APIs are simple eDSLs and are fairly common). You can see the need even from their simple examples:
https://github.com/leap71/PicoGK/blob/main/Examples/Ex_BooleanShowCase.cs#L56 https://github.com/leap71/PicoGK/blob/main/Examples/Ex_Boole...
I just noticed that they also support defining objects via implicit functions, so that's neat:
https://github.com/leap71/PicoGK/blob/main/Examples/Ex_ImplicitsExample.cs https://github.com/leap71/PicoGK/blob/main/Examples/Ex_Impli...