Walter Bright on writing a language

Monkey Archive Forums/Digital Discussion/Walter Bright on writing a language

AdamRedwoods(Posted 2014) [#1]
Thought this was appropriate for Mark and his Monkey X endeavors:
http://www.drdobbs.com/architecture-and-design/so-you-want-to-write-your-own-language/240165488

(Walter Bright has written the D programming language. look him up)


Nobuyuki(Posted 2014) [#2]
Why is True God #2 in that list? It sounds to me like he's basically just trying to come up with an elaborate way to justify line terminators. Needs a better example ! Though I do agree with the part about better error messages. This is not surprisingly something that all BRL languages would be improved by. Seeing questions about cryptic error messages on the beginners' forum seems to be a good place to start looking for improvements.

VB used to be terse, but somewhat fair about its syntax error messages. "Expecting x" would usually pop up if you forgot a comma or bracket somewhere. Trans seems to take the lack of a closure as a sign it should keep parsing beyond the line. This is definitely useful for multiline statements, but causes all sorts of weird stuff to happen with partially written lines starting with a declaration.

The big bad list of VB compiler errors: http://msdn.microsoft.com/en-us/library/ms235336%28v=vs.90%29.aspx


John Galt(Posted 2014) [#3]
Agree, #2 does sound like an excuse. Monkey has line terminators- they're called carriage returns.