January 31
On Thursday, 31 January 2019 at 01:30:36 UTC, Arun Chandrasekaran wrote:
> On Wed, Jan 30, 2019 at 5:15 PM Walter Bright via Digitalmars-d <digitalmars-d@puremagic.com> wrote:
>>
>> On 1/30/2019 4:08 PM, Andrei Alexandrescu wrote:
>> > Don't forget "typename" and "::template", beautifully combined here:
>> >
>> > typedef typename Allocator::template rebind<Mapped>::other mapped_type_allocator;
>>
>> It is indeed beautiful. Want to write a DIP to switch to < > ?
>
> Bauss will win another worst code contest if this DIP gets approved ;-)

I can't wait! ;)
January 31
On Thu, Jan 31, 2019 at 01:13:29PM +0000, bauss via Digitalmars-d wrote:
> On Thursday, 31 January 2019 at 01:30:36 UTC, Arun Chandrasekaran wrote:
> > On Wed, Jan 30, 2019 at 5:15 PM Walter Bright via Digitalmars-d <digitalmars-d@puremagic.com> wrote:
> > > 
> > > On 1/30/2019 4:08 PM, Andrei Alexandrescu wrote:
> > > > Don't forget "typename" and "::template", beautifully combined here:
> > > >
> > > > typedef typename Allocator::template rebind<Mapped>::other mapped_type_allocator;
> > > 
> > > It is indeed beautiful. Want to write a DIP to switch to < > ?
> > 
> > Bauss will win another worst code contest if this DIP gets approved ;-)
> 
> I can't wait! ;)

One of these days I'm gonna hafta pull an IODCC entry... Like the monstrosity I recently posted in bauss's thread. :-D


T

-- 
Give a man a fish, and he eats once. Teach a man to fish, and he will sit forever.
February 01
On Thursday, 31 January 2019 at 17:31:02 UTC, H. S. Teoh wrote:
> On Thu, Jan 31, 2019 at 01:13:29PM +0000, bauss via Digitalmars-d wrote:
>> On Thursday, 31 January 2019 at 01:30:36 UTC, Arun Chandrasekaran wrote:
>> > On Wed, Jan 30, 2019 at 5:15 PM Walter Bright via Digitalmars-d <digitalmars-d@puremagic.com> wrote:
>> > > 
>> > > On 1/30/2019 4:08 PM, Andrei Alexandrescu wrote:
>> > > > Don't forget "typename" and "::template", beautifully combined here:
>> > > >
>> > > > typedef typename Allocator::template rebind<Mapped>::other mapped_type_allocator;
>> > > 
>> > > It is indeed beautiful. Want to write a DIP to switch to <
>> > > > ?
>> > 
>> > Bauss will win another worst code contest if this DIP gets approved ;-)
>> 
>> I can't wait! ;)
>
> One of these days I'm gonna hafta pull an IODCC entry... Like the monstrosity I recently posted in bauss's thread. :-D
>
>
> T

Please make my dream come true
February 03
On Wednesday, 30 January 2019 at 19:42:06 UTC, Neia Neutuladh wrote:
> On Wed, 30 Jan 2019 19:17:38 +0000, dronord wrote:
>> Templates are traditional is {} or <>.
>
> I've never seen {} for templates. I believe I've only seen [], <>, (), and !().

Julia uses the curly brackets for type parameterization.

>> < and > is nice construction. May be add it in D?)
>
> D is a mature language, and part of that is not making changes without a good reason.

I much prefer the D template syntax even though I'm way more used to '<>' from C++, Java, and Rust. If I were going to make a change in syntax to D3 I'd make variable declaration syntax postfix, like Go, Scala, Kotlin, Rust...

February 04
On Sunday, 3 February 2019 at 19:37:57 UTC, bpr wrote:
>
> I much prefer the D template syntax even though I'm way more used to '<>' from C++, Java, and Rust. If I were going to make a change in syntax to D3 I'd make variable declaration syntax postfix, like Go, Scala, Kotlin, Rust...

I hope that does not happen. I absolutely hate it.
February 04
On Monday, 4 February 2019 at 07:19:32 UTC, bauss wrote:
> On Sunday, 3 February 2019 at 19:37:57 UTC, bpr wrote:
>>
>> I much prefer the D template syntax even though I'm way more used to '<>' from C++, Java, and Rust. If I were going to make a change in syntax to D3 I'd make variable declaration syntax postfix, like Go, Scala, Kotlin, Rust...
>
> I hope that does not happen. I absolutely hate it.

Tell us more. I've thought about this one but haven't been able to determine if either method is objectively better. How do you think each method would affect a language in general?
Next ›   Last »
1 2 3