roc-lang / roc

A fast, friendly, functional language.
https://roc-lang.org
Universal Permissive License v1.0
4.47k stars 315 forks source link

Parsing support for snake_case identifiers #7233

Open gamebox opened 5 days ago

gamebox commented 5 days ago

My Plan

Here are some open questions answered on Zulip by @rtfeldman (emojis redacted).

that said, I think both of those scenarios should be a warning - that is, the compiler pushes a Problem but otherwise accepts the name as valid, so it doesn't block you from running your program over a stylistic problem

However, short term I think we should actually have the formatter change this one for you, because otherwise converting all the existing code from camelCase to snake_case will take forever.

I am not a "Rustacean" by any means, but have been through the Book in years past. Any feedback on the way I wrote the tests or any other part of the implementation would be very appreciated.

This PR will be only for the parsing portion of #7214, the formatter portion will be done in a separate PR