3 ms·
Strings? Not familiar with your specific needs, but generally prefer DSLs fine tuned to the task. Strings sound like they'll allow more flexibility for you, le
by Detrus 16y ago
Strings?
Not familiar with your specific needs, but generally prefer DSLs fine tuned to the task. Strings sound like they'll allow more flexibility for you, less hassle for developers to type and read. Objects and classes sounds like boilerplate galore.
Hard to say though, depends on API or string DSL design. Do you have example code?
- jorgeleo 16y agoEngine.Create("dbfile", CSV, "sourcefile", new Config[] { Field1, Field2 }); vs Engine.Exec("Create dbfile CSV 'sourcefile' using Field1, Field2"); or... Engine.Context("contextname", "var1>10").Save() vs Engine.Exec("Save (var1>10) as contextname");
- Detrus 16y agoWell the string DSL is easier to read. Doesn't seem like there would be a lot of useful autocompletion with objects/classes either.