Announcing extension methods and anonymous functions

19 views
Skip to first unread message

piter....@gmail.com

unread,
Oct 19, 2010, 2:54:30 PM10/19/10
to SSharp
I am happy to announce a new feature of S# which is currently under
testing and will be delivered soon.

It will be possible to use C# extension methods and pass functions
like lambda expressions. Example (S#):

a = array(1,2,'hello',3,4,5);
a.OfType<|int|>().Where<|int|>(function (x) { return x >
3; } ).ToArray<|int|>();

Unfortunately, it should be still required to specify generic type
arguments for functions explicitly. However, in future implicit type
inference is possible, like it is in C#.

More info on this topic will be provided later on.

piter....@gmail.com

unread,
Oct 28, 2010, 6:05:17 AM10/28/10
to SSharp
Reply all
Reply to author
Forward
0 new messages