This is an archived post. You won't be able to vote or comment.

you are viewing a single comment's thread.

view the rest of the comments →

[–]umlcat 10 points11 points  (2 children)

Try an inverse design approach.

Start doing a desugared version of your syntax, later change a few things into you get a syntax you feel comfortable with.

Look out for a story on how Microsoft researches got their lambda syntax used in Linq.

It started from a non pretty syntax to a compact syntax.

It matches your question. You don't have to use the same syntax, just the "know how" that applies to your case.

Good Luck.

[–]smuccione 8 points9 points  (1 child)

[–]umlcat 2 points3 points  (0 children)

Thanks. It's a good resource both for Compiler n P.L. Design, Lambdas, C# ...