I remember a friend, who was designing a new programming language, telling me about a bug he had in his parser. It allowed what he thought was a cool language feature. It was a weird special case. Every tool that parsed that language would have to have a bug to match it.
David Newton wrote:Closures are the biggest thing missing. The pomp and circumstance of Java also make things rather ugly when compared to other languages that allow a more natural internal DSL.
Java's shortcomings are well-documented; rather than continue this thread's spiral into forum-inappropriate chatter I'll just direct you to the web :)
Terence Parr wrote:
Yep, experience helps in two ways: knowing when to go DSL and being able to get their quickly. It also helps in designing the language (syntax/semantics)...so three ways.
I cringe when see of the languages out there. I remember a friend, who was designing a new programming language, telling me about a bug he had in his parser. It allowed what he thought was a cool language feature. It was a weird special case. Every tool that parsed that language would have to have a bug to match it.
Terence Parr wrote:
Burk Hufnagel wrote:even something like a RESTful web service could be considered a small and rather limited DSL.
Sure. Anything that is not random text follows the format, hence, a language. URLs certainly follow a language. The output of the Web service itself must also follow a format. This is usually XML or JSON etc... Those are languages.
When your world is a parser generator, everything looks like a parsing problem ;)
Abimaran Kugathasan wrote:I'm late and I've doubt in this code.
1) What is the neediness for the import java.util.*; statements?
2) Why is this program doesn't terminate normally?