-
-
Notifications
You must be signed in to change notification settings - Fork 251
"Undocumented" breaking change of array access in v11 #825
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
Comments
I admit this change is kinda hidden, since it's suggested to switch to the new standard library "ReScript Core" and open that by default. But the migration guide refers to the migration docs of ReScript Core which cover that, albeit briefly. When you only use the playground, it totally looks like a hard breaking change since it automatically uses and opens ReScript Core for when v11 is selected. But the migration guide is actually not for the playground which also includes some other hacks to be able to run the compiler without a build system in the browser. It's not in the list of breaking changes since those are only the ones from the compiler, they don't cover the switch from the old OCaml standard library (or ReScript's own Belt library) to ReScript Core. This will only actually be a breaking change when ReScript Core will be part of the compiler in v12. |
I followed https://rescript-lang.org/docs/manual/latest/installation to initialize a project from scratch and migrated code over, but I understand that it's an unusual migration path. Without going through the guide in depth, it looks more like a language change than what a library would do. Believing so, I only searched for keywords like array access and
It's technically correct to do so, but I think it won't hurt to list language changes as an example of breaking changes in the ReScript Core section. |
The migration guide now mentions the array access changes! |
The following code compiles in v10, but not in v11.
https://rescript-lang.org/try?version=v11.0.1&code=DYUwLgBAhhC8EG0AMAaCBGAugKFJA+nBAFIDOAdAJIB2Y5YA9gKIAeADg9SLQJZTAAKKMkwBKIA
This change does not appear in https://rescript-lang.org/docs/manual/latest/migrate-to-v11#list-of-all-breaking-changes, but is discussed on the forum.
Ref #743
The text was updated successfully, but these errors were encountered: