From 70021d7e6d5d1df4d43f694e4330a697dd75c602 Mon Sep 17 00:00:00 2001 From: mappu Date: Tue, 7 Apr 2020 21:53:15 +1200 Subject: [PATCH] doc: update extra README status --- README.md | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index 324a5f6..7870f8b 100644 --- a/README.md +++ b/README.md @@ -30,9 +30,13 @@ The goal is to produce idiomatic, maintainable Go code as part of a one-off conv [ ] Numbered break/continue [ ] Goto [ ] Comma operator +[ ] `null` -> `nil` +[ ] Consts and `define()` [ ] `isset`/`unset` [ ] `instanceof` [ ] `try`/`catch`/`finally` + - Intend to implement using err checks, not panic/recover + - Any statements within the try block should capture the finally/catch to run within any interior err-check blocks [ ] Abandon upon sight of `eval` / `extract` / ... [ ] Assignment expressions - Go doesn't support assignment in rvalues, only as a statement @@ -41,13 +45,12 @@ The goal is to produce idiomatic, maintainable Go code as part of a one-off conv - [ ] Add hoisting pass [ ] Closures - [ ] Handle value/reference captures -[ ] Sort callbacks - - [ ] Transparent conversion to sort.Slice [X] Convert top-level calls to `init()`/`main()` - *Currently always `init`* [ ] Class/object transformations - [X] Convert `new X` constructor calls to `NewX` - [X] Visibility + - [X] Apply PHP visibility modifiers as Go case change - [ ] Call mangled function name at call sites - *PHP variable names are case-sensitive, function names are case-insensitive* - [X] Static methods @@ -69,6 +72,7 @@ The goal is to produce idiomatic, maintainable Go code as part of a one-off conv - [ ] Standard library transformations - [ ] Track golang package imports - [ ] Handle conflicts between golang stdlib packages / local variable names + - [ ] uasort -> sort.Slice - [ ] PHP Superglobal transformations - [ ] `$_SERVER['argv']` to os.Args - [ ] `$_GET['name']` to r.FormValue('name')