Vision document for H1 2018

rumbu rumbu at rumbu.ro
Wed Mar 14 05:22:53 UTC 2018


On Tuesday, 13 March 2018 at 23:20:22 UTC, Nick Sabalausky 
(Abscissa) wrote:
> On 03/11/2018 11:31 PM, Laeeth Isharc wrote:
>> 
>> C# slices look great.
>
> I wonder if that might open the door for D on the CLR. I know 
> that was attempted once a long way back, but was deemed 
> infeasible and abandoned. IIRC, inability to implement slices 
> was the main blocker.

I doubt that this was the blocker because C# had ArraySegment<T> 
since .net framework 2.0 (2006), which is exactly a slice, but 
doesn't have the syntactic sugar for it.

The current C# proposal introduces a syntactic sugar similar to D 
(using ":" instead of "..") and extends the concept to stack 
arrays, because ArraySegment was limited to managed arrays.

As I remember one of the main blockers was in fact the module 
system which does not map to the namespace concept in C#




More information about the Digitalmars-d-announce mailing list