Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Layout based/indentation based lexer #12

Open
brendanzab opened this issue Mar 29, 2018 · 1 comment
Open

Layout based/indentation based lexer #12

brendanzab opened this issue Mar 29, 2018 · 1 comment

Comments

@brendanzab
Copy link
Member

brendanzab commented Mar 29, 2018

Would be nice to have a layout-based syntax like Haskell, Idris, and F#. I'm getting a little sick of all those closing curly braces in Rust!

Resources

@brendanzab
Copy link
Member Author

brendanzab commented Jul 31, 2018

Plausible thing from Conor McBride on Twitter:

Proposal: layout should be invariant under alpha conversion.
Policy: layout heralds followed by more than one line should be at the end of their line.

So

... where foo x = blah

is ok, but

... where -- line must end here 
    foo True = blah
    foo False = mumble

... will have to think on it though

Anything we do do should still allow us to implement an auto-formatter.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant