-
For example: //old
Foo( item=>item.Name );
//new
Foo(item.Name) “Item” as the default parameter of the expression. Of course, you can also constrain it to be called ExpItem / ExpParam and so on. This constraint allows IDE to convert "item.Name" to "item= > item.Name" when parsing the syntax tree. If it is more than one parameter, it can be incremented. i.e. : Foo( item1.Age == item2.Age ); It's a bold idea, but I think it's useful because I've seen a lot of company code, and a lot of their code is like this: "item= > xxx", "item= > yyy", "item= > zzz". Developers spend most of their time writing "item= >". Please let me know if I have any unclear description. :) |
Beta Was this translation helpful? Give feedback.
Replies: 4 comments 1 reply
-
大佬们牛逼,而我只能在翻译软件的辅助下下过来给回个帖!~~ |
Beta Was this translation helpful? Give feedback.
-
Good proposal |
Beta Was this translation helpful? Give feedback.
-
666 |
Beta Was this translation helpful? Give feedback.
-
See: #91 |
Beta Was this translation helpful? Give feedback.
See: #91