Re: File IO: C# streams VS iterators?

2013-11-07 Thread Jacob Carlborg
On 2013-11-08 01:57, DDD wrote: I was watching a dconf talk about porting C# code to D. One thing that came up was there isn't anything like C# streams for D. Walter said he thinks iterators (unless I remember wrong) is superior. The speaker agreed but said it isn't a drop in replacement so that

Re: File IO: C# streams VS iterators?

2013-11-07 Thread Jacob Carlborg
On 2013-11-08 04:22, Lionello Lunesu wrote: However, sometimes it's useful to have polymorphism for accessing streams, especially when porting C#/java code to D. In that case it would be pretty trivial to port the base classes to D and implement them using the D ranges. For that, there's Tango

Re: File IO: C# streams VS iterators?

2013-11-07 Thread Lionello Lunesu
On 11/8/13, 8:57, DDD wrote: I was watching a dconf talk about porting C# code to D. One thing that came up was there isn't anything like C# streams for D. Walter said he thinks iterators (unless I remember wrong) is superior. The speaker agreed but said it isn't a drop in replacement so that is

File IO: C# streams VS iterators?

2013-11-07 Thread DDD
I was watching a dconf talk about porting C# code to D. One thing that came up was there isn't anything like C# streams for D. Walter said he thinks iterators (unless I remember wrong) is superior. The speaker agreed but said it isn't a drop in replacement so that is an issue if you want to por