doc: update extra README status

This commit is contained in:
mappu 2020-04-07 21:53:15 +12:00
parent 642711b09f
commit 70021d7e6d

View File

@ -30,9 +30,13 @@ The goal is to produce idiomatic, maintainable Go code as part of a one-off conv
[ ] Numbered break/continue [ ] Numbered break/continue
[ ] Goto [ ] Goto
[ ] Comma operator [ ] Comma operator
[ ] `null` -> `nil`
[ ] Consts and `define()`
[ ] `isset`/`unset` [ ] `isset`/`unset`
[ ] `instanceof` [ ] `instanceof`
[ ] `try`/`catch`/`finally` [ ] `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` / ... [ ] Abandon upon sight of `eval` / `extract` / ...
[ ] Assignment expressions [ ] Assignment expressions
- Go doesn't support assignment in rvalues, only as a statement - 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 - [ ] Add hoisting pass
[ ] Closures [ ] Closures
- [ ] Handle value/reference captures - [ ] Handle value/reference captures
[ ] Sort callbacks
- [ ] Transparent conversion to sort.Slice
[X] Convert top-level calls to `init()`/`main()` [X] Convert top-level calls to `init()`/`main()`
- *Currently always `init`* - *Currently always `init`*
[ ] Class/object transformations [ ] Class/object transformations
- [X] Convert `new X` constructor calls to `NewX` - [X] Convert `new X` constructor calls to `NewX`
- [X] Visibility - [X] Visibility
- [X] Apply PHP visibility modifiers as Go case change
- [ ] Call mangled function name at call sites - [ ] Call mangled function name at call sites
- *PHP variable names are case-sensitive, function names are case-insensitive* - *PHP variable names are case-sensitive, function names are case-insensitive*
- [X] Static methods - [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 - [ ] Standard library transformations
- [ ] Track golang package imports - [ ] Track golang package imports
- [ ] Handle conflicts between golang stdlib packages / local variable names - [ ] Handle conflicts between golang stdlib packages / local variable names
- [ ] uasort -> sort.Slice
- [ ] PHP Superglobal transformations - [ ] PHP Superglobal transformations
- [ ] `$_SERVER['argv']` to os.Args - [ ] `$_SERVER['argv']` to os.Args
- [ ] `$_GET['name']` to r.FormValue('name') - [ ] `$_GET['name']` to r.FormValue('name')