From b29801bbe8dc03ceca3475a828dd6143585b8887 Mon Sep 17 00:00:00 2001 From: Non <43197300+nonperforming@users.noreply.github.com> Date: Sun, 8 Oct 2023 00:11:20 +1300 Subject: [PATCH 1/2] Use emojis in feature list --- README.md | 40 ++++++++++++++++++++-------------------- 1 file changed, 20 insertions(+), 20 deletions(-) diff --git a/README.md b/README.md index 18095dd3..027bd9ed 100644 --- a/README.md +++ b/README.md @@ -114,26 +114,26 @@ for a quick overview of the supported features. | Name | Example | Supported | | --------------- | ------------------------------- | --------- | -| If Else | `if..else..elif` | YES | -| Loop | `for/while/break/continue` | YES | -| Function | `def f(x,*args,y=1):` | YES | -| Subclass | `class A(B):` | YES | -| List | `[1, 2, 'a']` | YES | -| ListComp | `[i for i in range(5)]` | YES | -| Slice | `a[1:2], a[:2], a[1:]` | YES | -| Tuple | `(1, 2, 'a')` | YES | -| Dict | `{'a': 1, 'b': 2}` | YES | -| F-String | `f'value is {x}'` | YES | -| Unpacking | `a, b = 1, 2` | YES | -| Star Unpacking | `a, *b = [1, 2, 3]` | YES | -| Exception | `raise/try..catch` | YES | -| Dynamic Code | `eval()/exec()` | YES | -| Reflection | `hasattr()/getattr()/setattr()` | YES | -| Import | `import/from..import` | YES | -| Context Block | `with as :` | YES | -| Type Annotation | `def f(a:int, b:float=1)` | YES | -| Generator | `yield i` | YES | -| Decorator | `@cache` | YES | +| If Else | `if..else..elif` | ✅ | +| Loop | `for/while/break/continue` | ✅ | +| Function | `def f(x,*args,y=1):` | ✅ | +| Subclass | `class A(B):` | ✅ | +| List | `[1, 2, 'a']` | ✅ | +| ListComp | `[i for i in range(5)]` | ✅ | +| Slice | `a[1:2], a[:2], a[1:]` | ✅ | +| Tuple | `(1, 2, 'a')` | ✅ | +| Dict | `{'a': 1, 'b': 2}` | ✅ | +| F-String | `f'value is {x}'` | ✅ | +| Unpacking | `a, b = 1, 2` | ✅ | +| Star Unpacking | `a, *b = [1, 2, 3]` | ✅ | +| Exception | `raise/try..catch` | ✅ | +| Dynamic Code | `eval()/exec()` | ✅ | +| Reflection | `hasattr()/getattr()/setattr()` | ✅ | +| Import | `import/from..import` | ✅ | +| Context Block | `with as :` | ✅ | +| Type Annotation | `def f(a:int, b:float=1)` | ✅ | +| Generator | `yield i` | ✅ | +| Decorator | `@cache` | ✅ | ## Contribution From 2b72428931fda01a8d58bec46137a9fa1c46960c Mon Sep 17 00:00:00 2001 From: Non <43197300+nonperforming@users.noreply.github.com> Date: Sun, 8 Oct 2023 00:13:25 +1300 Subject: [PATCH 2/2] Use emojis in feature list (zh) --- README_zh.md | 38 +++++++++++++++++++------------------- 1 file changed, 19 insertions(+), 19 deletions(-) diff --git a/README_zh.md b/README_zh.md index 7a6f33b6..007ab2f4 100644 --- a/README_zh.md +++ b/README_zh.md @@ -76,25 +76,25 @@ int main(){ | 特性 | 示例 | 支持 | | ------------ | ------------------------------- | ---- | -| 分支 | `if..else..elif` | YES | -| 循环 | `for/while/break/continue` | YES | -| 函数 | `def f(x,*args,y=1):` | YES | -| 类与继承 | `class A(B):` | YES | -| 列表 | `[1, 2, 'a']` | YES | -| 列表生成式 | `[i for i in range(5)]` | YES | -| 切片 | `a[1:2], a[:2], a[1:]` | YES | -| 元组 | `(1, 2, 'a')` | YES | -| 字典 | `{'a': 1, 'b': 2}` | YES | -| 格式化字符串 | `f'value is {x}'` | YES | -| 序列解包 | `a, b = 1, 2` | YES | -| 异常 | `raise/try..catch` | YES | -| 动态分发 | `eval()/exec()` | YES | -| 反射 | `hasattr()/getattr()/setattr()` | YES | -| 导入模块 | `import/from..import` | YES | -| 上下文管理器 | `with as :` | YES | -| 类型标注 | `def f(a:int, b:float=1)` | YES | -| 生成器 | `yield i` | YES | -| 装饰器 | `@cache` | YES | +| 分支 | `if..else..elif` | ✅ | +| 循环 | `for/while/break/continue` | ✅ | +| 函数 | `def f(x,*args,y=1):` | ✅ | +| 类与继承 | `class A(B):` | ✅ | +| 列表 | `[1, 2, 'a']` | ✅ | +| 列表生成式 | `[i for i in range(5)]` | ✅ | +| 切片 | `a[1:2], a[:2], a[1:]` | ✅ | +| 元组 | `(1, 2, 'a')` | ✅ | +| 字典 | `{'a': 1, 'b': 2}` | ✅ | +| 格式化字符串 | `f'value is {x}'` | ✅ | +| 序列解包 | `a, b = 1, 2` | ✅ | +| 异常 | `raise/try..catch` | ✅ | +| 动态分发 | `eval()/exec()` | ✅ | +| 反射 | `hasattr()/getattr()/setattr()` | ✅ | +| 导入模块 | `import/from..import` | ✅ | +| 上下文管理器 | `with as :` | ✅ | +| 类型标注 | `def f(a:int, b:float=1)` | ✅ | +| 生成器 | `yield i` | ✅ | +| 装饰器 | `@cache` | ✅ | ## 参考