Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

New Crowdin translations by GitHub Action #200

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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