Skip to content

Commit

Permalink
New Crowdin translations by GitHub Action
Browse files Browse the repository at this point in the history
  • Loading branch information
crowdin-bot committed Oct 18, 2024
1 parent 88cd76c commit 7508101
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,7 @@ A: The dynamic construction ability of Natasha is very powerful. It can be used

### I don't want to compile every time, can I cache the result of the script?

A: No, caching the result needs to be done by you. Natasha follows the lightweight route. `AssemblyCSharpBuilder` is the smallest and most basic compilation unit. If you want to cache, you can implement a `ConcurrentDictionary<string,Delegate/Action/Func>` to cache the result.Natasha is not responsible for anything other than the compilation responsibility.
A: No, you cannot. Caching the result requires your action. Natasha follows a lightweight approach, where `AssemblyCSharpBuilder` is the smallest and most basic compilation unit. If you want to cache, you can implement your own `ConcurrentDictionary<string,Delegate/Action/Func>` to cache the result.Natasha is not responsible for anything other than the compilation responsibility.

### I only want to use the using statement, but I don't want to add so many references.

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,7 @@ var simpleFunc = "return Math.Floor(arg1/0.3);"

### スクリプトの結果をキャッシュしたくありません。毎回コンパイルするのは嫌ですか?

答え:できません。結果をキャッシュするには、自分で`ConcurrentDictionary<string,Delegate/Action/Func>`を実装する必要があります。Natashaは軽量化路線を歩んでおり、`AssemblyCSharpBuilder`が最小限の基本的なコンパイルユニットです。Natasha 不负责<span class="notranslate">编译职责之外</span>的事情。
答:不可以,缓存結果需要您來完成,Natasha 走的是輕量化路線,`AssemblyCSharpBuilder` 為最小最基礎的編譯單元,如果你想緩存,可以自己實現一個 `ConcurrentDictionary<string,Delegate/Action/Func>` 來緩存結果。Natasha 不负责<span class="notranslate">编译职责之外</span>的事情。

### 我只想使用 <span class="notranslate">using</span> 全集,但不想添加那么多的引用。

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ Package(Builder) + API + Extension => Operator

<br/>

直接使用Natasha内置的Builder可以快速实现定制,例如:`OopBuilder<TOperator>``MethodBuilder<TOperator>`泛型方法。
直接使用Natasha内置的Builder可以快速实现定制,例如:OopBuilder<TOperator>MethodBuilder<TOperator>泛型方法。
前者为其提供对象构造模板,后者专注构建方法。

<br/>
Expand Down

0 comments on commit 7508101

Please sign in to comment.