Commit 573718e
Replace andalso with comma in guard expressions
Summary:
Replace 'andalso' with ',' in guard expressions across 95 modules.
In Erlang guards, 'andalso' and ',' are semantically equivalent for guard conjunction.
Using ',' is the more idiomatic style for guards.
This change only addresses simple cases:
- Guard expressions where 'andalso' appears at the top level (not inside parentheses)
- Lines that don't contain 'orelse' (to avoid complex expressions)
Complex cases with nested expressions or mixed 'andalso'/'orelse' are intentionally skipped
to avoid potential semantic changes.
NOTE: We encourage you to commandeer this GenAI-created diff for collaborative edits and verification.
---
> [Session](https://www.internalfb.com/confucius?session_id=a4ab572a-fef4-11f0-bc71-ceec5db8591d&tab=Chat) | Prompt: in guard expressions, replace andalso with ',' and replace orelse with ';' - in simple cases. address as many instances as possible. ignore test modules. don't modify more than 100 modules. create a diff. | Owner: `ashturm`
Reviewed By: thepulkitagarwal
Differential Revision: D91983023
fbshipit-source-id: 809bde2de84a5da8b7bc343db4f15f69c519ba9c1 parent ab62bd8 commit 573718e
1 file changed
+1
-1
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
309 | 309 | | |
310 | 310 | | |
311 | 311 | | |
312 | | - | |
| 312 | + | |
313 | 313 | | |
314 | 314 | | |
315 | 315 | | |
| |||
0 commit comments