Hacker News new | past | comments | ask | show | jobs | submit login

>Yes, DSLs are typically easier to read, but only after you come to understand the primitives of the language.

Quoting user quotemstr here:

"Every program is a DSL. What do you think you're doing when you define types and functions except make a little DSL of your own? (...) Programming, in large part, is an exercise in language creation."




That's just wrong. A DSL defines a new language syntax. Most programs don't do that. You might have to learn what functions do but you don't need to learn an entirely new language when you read a Go program for example.


As IshKabab hints at, there's a huge difference between defining a domain within an existing language and defining a domain-specific language. Yes, types and functions do define a domain, by detailing the data compositions and operations available. But those data and operations work within the confines of the existent language.




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: