README: panic/defer
This commit is contained in:
@@ -170,9 +170,7 @@ Here are some examples related to them:
|
|||||||
Common Go syntax is already supported. Except for the following, which needs to be improved:
|
Common Go syntax is already supported. Except for the following, which needs to be improved:
|
||||||
|
|
||||||
* map (Very limited support)
|
* map (Very limited support)
|
||||||
* panic (Limited support)
|
|
||||||
* recover (Not supported yet)
|
* recover (Not supported yet)
|
||||||
* defer (Limited: defer in loops is not supported)
|
|
||||||
* chan (Not supported yet)
|
* chan (Not supported yet)
|
||||||
* generics (Not supported yet)
|
* generics (Not supported yet)
|
||||||
|
|
||||||
@@ -185,6 +183,11 @@ Here are some examples related to Go syntax:
|
|||||||
* [goroutine](_demo/goroutine/goroutine.go): goroutine demo
|
* [goroutine](_demo/goroutine/goroutine.go): goroutine demo
|
||||||
|
|
||||||
|
|
||||||
|
## Defer
|
||||||
|
|
||||||
|
LLGo defer does not support usage in loops. This is not a bug but a feature, because we think that using defer in a loop is a very unrecommended practice.
|
||||||
|
|
||||||
|
|
||||||
### Garbage Collection (GC)
|
### Garbage Collection (GC)
|
||||||
|
|
||||||
By default, LLGo implements `gc` based on [bdwgc](https://www.hboehm.info/gc/) (also known as [libgc](https://www.hboehm.info/gc/)).
|
By default, LLGo implements `gc` based on [bdwgc](https://www.hboehm.info/gc/) (also known as [libgc](https://www.hboehm.info/gc/)).
|
||||||
|
|||||||
Reference in New Issue
Block a user