-
-
Notifications
You must be signed in to change notification settings - Fork 40
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
式ツリーがらみもうちょっとちゃんと書いてもいいかも #88
Labels
Comments
from x in source
where x > 3
select x * x; ↑から作られるETは、↓みたいなの。全部展開済みの結果。 Enumerable.Select(
Enumerable.Where(
source,
x => x > 3),
x => x * x); 元のC#は保ってない。 |
以下のようなものには未対応。 C# 4.0以降に、C# 的には追加された式:
.NET 4以降に追加されたExpression:
|
VS 一時変数に受けて |
課題が大概多い
https://gist.github.com/ufcpp/1b5bdeb90baaa4dbcac6e1ba2317743f 何にしても、この機能は関係者が多すぎる。 |
式ツリーの先行き自体どうなんだろう感多少あるのでいったん close。 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
http://miso-soup3.hateblo.jp/
https://github.com/ufcpp/UfcppSample/blob/master/Chapters/Dynamic/fig/ExpressionTrees.pptx
Expression Tree (以下ET)
ET v1 … C# 3.0で導入された時点のET
v2計画 … ETは、C# 4.0以降の追加文法に対応してない。対応したいという話は出てる
参考:
dotnet/roslyn#3717
https://github.com/dotnet/roslyn/issues/2060
https://github.com/dotnet/roslyn/blob/master/docs/designNotes/2015-04-14%20C%23%20Design%20Meeting.md
dotnet/roslyn#12897
The text was updated successfully, but these errors were encountered: