March 13, 2009 Re: catchy phrase for this idiom? | ||||
---|---|---|---|---|
| ||||
Posted in reply to Walter Bright | On Fri, Mar 13, 2009 at 12:07 PM, Walter Bright <newshound1@digitalmars.com> wrote:
> Bill Baxter wrote:
>>
>> But it is what the word "eponymous" is about.
>
> I can't even pronounce "eponymous". Not too catchy :-)
>
R.E.M. thought it was catchy enough to name an album that. :-)
Seriously, though, I don't really care what you call it.
--bb
|
March 13, 2009 Re: catchy phrase for this idiom? | ||||
---|---|---|---|---|
| ||||
Posted in reply to Andrei Alexandrescu | Andrei Alexandrescu Wrote:
> I'm looking for a catchy phrase denoting this D idiom:
>
> template Blah(Stuff)
> {
> alias ... Blah;
> }
verbose templated declaration.
|
March 13, 2009 Re: catchy phrase for this idiom? | ||||
---|---|---|---|---|
| ||||
Posted in reply to Kagamin | "Kagamin" <spam@here.lot> wrote in message news:gpd8ka$1npp$1@digitalmars.com... > Andrei Alexandrescu Wrote: > >> I'm looking for a catchy phrase denoting this D idiom: >> >> template Blah(Stuff) >> { >> alias ... Blah; >> } > > verbose templated declaration. As far as I'm concerned, we've found a winner right here ;) |
March 13, 2009 Re: catchy phrase for this idiom? | ||||
---|---|---|---|---|
| ||||
Posted in reply to Bill Baxter | Bill Baxter wrote:
> Kinda not the same thing if you ask me. Eigen-blah generally refers
> to something where you've captured the essence of something better by
> representing it using a different set of basis functions.
That's pretty specific for a German word meaning 'self'.
|
March 13, 2009 Re: catchy phrase for this idiom? | ||||
---|---|---|---|---|
| ||||
Posted in reply to BCS | BCS wrote:
> Hello Bill,
>
>> Kinda not the same thing if you ask me. Eigen-blah generally refers
>> to something where you've captured the essence of something better by
>> representing it using a different set of basis functions.
>>
>> This doesn't seem to have much of anything to do with that. Its just
>> identity or sameness of name. That's not really what eigen thingys
>> are about.
>>
>
> An Eigen value for a matrix M is a vector V sutch that M x V = V (IIRC)
>
>
That's an eigenvector. An eigenvalue is a multiplier alpha such that M x V = alpha V.
"Eigen" in German means "its own", proper. I previously liked "the eponymous trick" as it had a nice self-recurrence flavor, but I like "eigentemplates" better.
Andrei
|
March 14, 2009 Re: catchy phrase for this idiom? | ||||
---|---|---|---|---|
| ||||
Posted in reply to Andrei Alexandrescu | Andrei Alexandrescu wrote:
> Christopher Wright wrote:
>> Andrei Alexandrescu wrote:
>>> Hello,
>>>
>>>
>>> I'm looking for a catchy phrase denoting this D idiom:
>>>
>>> template Blah(Stuff)
>>> {
>>> alias ... Blah;
>>> }
>>>
>>> i.e., defining inside a template a symbol of the same name as the template itself. Then you can use Blah!(X, Y) to mean Blah!(X, Y).Blah.
>>>
>>> What would be a catchy, descriptive, and memorable phrase for this?
>>>
>>>
>>> Thanks,
>>>
>>> Andrei
>>
>> Eigentemplate.
>
> My heart fell among my other integrated circuits. Looks like a huge winner. Thanks Christopher. Oh boy. I wasn't even dreaming about something *this* good.
>
> Andrei
If it's called this, I will have flashbacks to Linear Algebra every time I use it. Just reading this thread brought back my PTSD.
|
March 14, 2009 Re: catchy phrase for this idiom? | ||||
---|---|---|---|---|
| ||||
Posted in reply to Robert Fraser | Robert Fraser <fraserofthenight@gmail.com> wrote:
> Andrei Alexandrescu wrote:
>> Christopher Wright wrote:
>>> Andrei Alexandrescu wrote:
>>>> Hello,
>>>>
>>>>
>>>> I'm looking for a catchy phrase denoting this D idiom:
>>>>
>>>> template Blah(Stuff)
>>>> {
>>>> alias ... Blah;
>>>> }
>>>>
>>>> i.e., defining inside a template a symbol of the same name as the template itself. Then you can use Blah!(X, Y) to mean Blah!(X, Y).Blah.
>>>>
>>>> What would be a catchy, descriptive, and memorable phrase for this?
>>>>
>>>>
>>>> Thanks,
>>>>
>>>> Andrei
>>>
>>> Eigentemplate.
>> My heart fell among my other integrated circuits. Looks like a huge winner. Thanks Christopher. Oh boy. I wasn't even dreaming about something *this* good.
>> Andrei
>
> If it's called this, I will have flashbacks to Linear Algebra every time I use it. Just reading this thread brought back my PTSD.
And here I thought that'd be a good thing...
--
Simen
|
March 14, 2009 Re: catchy phrase for this idiom? | ||||
---|---|---|---|---|
| ||||
Posted in reply to Nick Sabalausky | On Fri, 13 Mar 2009 22:49:00 +1300, Nick Sabalausky <a@a.a> wrote:
> "Kagamin" <spam@here.lot> wrote in message
> news:gpd8ka$1npp$1@digitalmars.com...
>> Andrei Alexandrescu Wrote:
>>
>>> I'm looking for a catchy phrase denoting this D idiom:
>>>
>>> template Blah(Stuff)
>>> {
>>> alias ... Blah;
>>> }
>>
>> verbose templated declaration.
>
> As far as I'm concerned, we've found a winner right here ;)
>
>
What's verbose about a template with a single declaration?
Verbose adj. "Using or containing a great and usually an excessive number of words"
Or is that part of the trickey?
|
March 14, 2009 Re: catchy phrase for this idiom? | ||||
---|---|---|---|---|
| ||||
Posted in reply to Tim M | Hello Tim,
> What's verbose about a template with a single declaration?
>
> Verbose adj. "Using or containing a great and usually an excessive
> number of words"
>
there is no compact form for alias but this
T Foo(T)(T t) { return t; }
is internally identical the the more verbose form:
template Foo(T) { T Foo(T t){ return t; } }
|
March 14, 2009 Re: catchy phrase for this idiom? | ||||
---|---|---|---|---|
| ||||
Posted in reply to Andrei Alexandrescu | Thu, 12 Mar 2009 18:21:04 -0700, Andrei Alexandrescu wrote:
> Sergey Gromov wrote:
>> Thu, 12 Mar 2009 06:33:34 -0700, Andrei Alexandrescu wrote:
>>
>>> Hello,
>>>
>>> I'm looking for a catchy phrase denoting this D idiom:
>>>
>>> template Blah(Stuff)
>>> {
>>> alias ... Blah;
>>> }
>>>
>>> i.e., defining inside a template a symbol of the same name as the template itself. Then you can use Blah!(X, Y) to mean Blah!(X, Y).Blah.
>>>
>>> What would be a catchy, descriptive, and memorable phrase for this?
>>>
>>> Thanks,
>>>
>>> Andrei
>>
>> maybe parametrized alias
>
> That sounds good but (I'm saying this to all others who focused on "alias") - the inner name doesn't have to be an alias.
>
> Andrei
template shortcut?
|
Copyright © 1999-2021 by the D Language Foundation