Merge pull request #302 from xushiwei/q

README: panic/defer
This commit is contained in:
xushiwei
2024-06-12 23:28:30 +08:00
committed by GitHub

View File

@@ -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:
* map (Very limited support)
* panic (Limited support)
* recover (Not supported yet)
* defer (Limited: defer in loops is not supported)
* chan (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
## 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)
By default, LLGo implements `gc` based on [bdwgc](https://www.hboehm.info/gc/) (also known as [libgc](https://www.hboehm.info/gc/)).