digitalmars.D - D Logo and Slogan
- Mike (14/14) Jan 31 2014 I was feeling a little creative this morning, and thought the D
- Martin Cejp (4/5) Feb 01 2014 Outdated syntax. You should use
- Asman01 (2/7) Feb 01 2014 Isn't this syntax discouraged/depracted now?
- Jesse Phillips (7/15) Feb 01 2014 alias this = foo;
- Dicebot (4/10) Feb 01 2014 This syntax was intended to only be used for normal aliases, not
- Brian Schott (6/20) Feb 01 2014 Do you have a citation for that? My understanding was that the
- Dicebot (2/2) Feb 01 2014 It was actually removed several releases ago
- Jesse Phillips (6/20) Feb 01 2014 Pretty sure "alias this" was actually a driving force. E.g
- Timon Gehr (4/9) Feb 01 2014 The syntax was actively removed.
- Jesse Phillips (20/34) Feb 02 2014 Yes, "actively"
- Timon Gehr (4/17) Feb 01 2014 Which is highly nonsensical and basically shows that alias this should
- deadalnix (2/16) Feb 01 2014 Because more syntax is always better !
- Mike (2/7) Feb 01 2014 Damn! Not sure the pun still works. Maybe it never did.
- Chris Cain (10/10) Feb 01 2014 I think this whole thread should be our slogan.
- anonymous (3/5) Feb 01 2014 The word's "deprecated" (de-prec-ate, not de-pre-she-ate).
- =?UTF-8?B?QWxpIMOHZWhyZWxp?= (4/9) Feb 01 2014 New slogan: D'precated
- Chris Cain (4/9) Feb 01 2014 Yeah, I actually just right clicked the word for the correction
- Martin Cejp (4/14) Feb 01 2014 Wait for a few seconds (time for some Garbage Collection), add an
- Chris Cain (5/21) Feb 01 2014 Now we're just being mean. :p
I was feeling a little creative this morning, and thought the D Programming Language effort could use a slogan: alias {D Logo} this; I hope the pun makes sense to someone other than me. I did my best to create a D Logo SVG file and a few *.png files for the slogan. It might be cool to use this for T-Shirts, pens, baseball caps, mugs, lingerie, etc... at DConf 2014. https://github.com/JinShil/D_Images Since I don't own the D Logo, I wasn't sure how to license it, so I didn't add any license. If I've violated and copyright/license, please let me know. Enjoy! Mike
Jan 31 2014
On Saturday, 1 February 2014 at 03:25:33 UTC, Mike wrote:alias {D Logo} this;Outdated syntax. You should use alias this = {D Logo}; instead.
Feb 01 2014
On Saturday, 1 February 2014 at 16:14:59 UTC, Martin Cejp wrote:On Saturday, 1 February 2014 at 03:25:33 UTC, Mike wrote:Isn't this syntax discouraged/depracted now?alias {D Logo} this;Outdated syntax. You should use alias this = {D Logo}; instead.
Feb 01 2014
On Saturday, 1 February 2014 at 16:33:19 UTC, Asman01 wrote:On Saturday, 1 February 2014 at 16:14:59 UTC, Martin Cejp wrote:alias this = foo; This is new syntax, has some edge cases which fail and intended to replace the old typedef style alias Type NewName; Such that it look more like variable assignment: alias NewName = Type;On Saturday, 1 February 2014 at 03:25:33 UTC, Mike wrote:Isn't this syntax discouraged/depracted now?alias {D Logo} this;Outdated syntax. You should use alias this = {D Logo}; instead.
Feb 01 2014
On Saturday, 1 February 2014 at 17:38:44 UTC, Jesse Phillips wrote:alias this = foo; This is new syntax, has some edge cases which fail and intended to replace the old typedef style alias Type NewName; Such that it look more like variable assignment: alias NewName = Type;This syntax was intended to only be used for normal aliases, not "alias this", and was supposed to be removed for latter.
Feb 01 2014
On Saturday, 1 February 2014 at 18:44:42 UTC, Dicebot wrote:On Saturday, 1 February 2014 at 17:38:44 UTC, Jesse Phillips wrote:Do you have a citation for that? My understanding was that the correct way was 'alias' identifier '=' type; and that the old one was going to be removed because it was easier to confuse the type and its new name.alias this = foo; This is new syntax, has some edge cases which fail and intended to replace the old typedef style alias Type NewName; Such that it look more like variable assignment: alias NewName = Type;This syntax was intended to only be used for normal aliases, not "alias this", and was supposed to be removed for latter.
Feb 01 2014
It was actually removed several releases ago -https://github.com/D-Programming-Language/dmd/pull/1413
Feb 01 2014
On Sunday, 2 February 2014 at 00:25:39 UTC, Dicebot wrote:It was actually removed several releases ago -https://github.com/D-Programming-Language/dmd/pull/1413What a mess! I'm almost sorry I brought it up, but I'm glad I did because I was just about to model a 1500 page ARM Cortex-M datasheet using the apparently "old" syntax. So let me get this straight: alias {type} this; // only if using 'this' alias {newType} = {existingType} // all others So, does the language reference here (http://dlang.org/declaration.html#alias) need updating? And do the aliases in object.di here (https://github.com/D-Programming-Language/druntime/blob/master/src/object.di) also need updating?
Feb 01 2014
On Sunday, 2 February 2014 at 03:23:22 UTC, Mike wrote:So let me get this straight: alias {type} this; // only if using 'this' alias {newType} = {existingType} // all othersYes, but: 1) not {newType} but {newSymbol} - alias does not create new types 2) alias {existingSymbol} {newSymbol} is also legal and not planned for deprecation so farSo, does the language reference here (http://dlang.org/declaration.html#alias) need updating?Yes, looks like those don't mention new syntax.And do the aliases in object.di here (https://github.com/D-Programming-Language/druntime/blob/master/src/object.di) also need updating?Not necessarily, old syntax is still legal. But in context of consistent style - yes, makes sense.
Feb 02 2014
On Saturday, 1 February 2014 at 18:44:42 UTC, Dicebot wrote:On Saturday, 1 February 2014 at 17:38:44 UTC, Jesse Phillips wrote:Pretty sure "alias this" was actually a driving force. E.g "You should use alias this?" "How, I added alias this and it didn't compile?" "The syntax 'alias TheThingToAlias this'" "So not 'alias this' then."alias this = foo; This is new syntax, has some edge cases which fail and intended to replace the old typedef style alias Type NewName; Such that it look more like variable assignment: alias NewName = Type;This syntax was intended to only be used for normal aliases, not "alias this", and was supposed to be removed for latter.
Feb 01 2014
On 02/02/2014 01:21 AM, Jesse Phillips wrote:Pretty sure "alias this" was actually a driving force. E.g "You should use alias this?" "How, I added alias this and it didn't compile?" "The syntax 'alias TheThingToAlias this'" "So not 'alias this' then."The syntax was actively removed. https://github.com/D-Programming-Language/dmd/pull/1413 https://github.com/D-Programming-Language/dmd/pull/1685
Feb 01 2014
On Sunday, 2 February 2014 at 00:26:44 UTC, Timon Gehr wrote:On 02/02/2014 01:21 AM, Jesse Phillips wrote:Yes, "actively" "It'd do this community a lot of good if people would stop assuming malice when simple unawareness is far more likely. If there's issues that should block releases, those that are aware of the blockers really need to raise them. Don't assume that every pull request and every thread is read by those that need to see them." Kenji was quite admit that it was a mistake, but not one person agreed. The closest: " 9rnsr I agree with removing the syntax for the time being." --Walter I agree with Kenji that 'alias this' and 'alias symbol symbol' are different. I don't agree an entirely new (old) syntax needs to be used to distinguish them. I think it is syntactic overhead which provides no benefit. Though I could agree, explaining: 'alias this : symbol' isn't too hard (this implicitly converses to symbol (i.e. it takes from the is() and template expressions) Personally I really want the old alias syntax to vanish. I hate it, though I know it won't leave the language.Pretty sure "alias this" was actually a driving force. E.g "You should use alias this?" "How, I added alias this and it didn't compile?" "The syntax 'alias TheThingToAlias this'" "So not 'alias this' then."The syntax was actively removed. https://github.com/D-Programming-Language/dmd/pull/1413 https://github.com/D-Programming-Language/dmd/pull/1685
Feb 02 2014
On 02/01/2014 07:44 PM, Dicebot wrote:On Saturday, 1 February 2014 at 17:38:44 UTC, Jesse Phillips wrote:Which is highly nonsensical and basically shows that alias this should have been done as a (or more than one) specially named member instead, as the syntactic pun appears not to be working.alias this = foo; This is new syntax, has some edge cases which fail and intended to replace the old typedef style alias Type NewName; Such that it look more like variable assignment: alias NewName = Type;This syntax was intended to only be used for normal aliases, not "alias this", and was supposed to be removed for latter.
Feb 01 2014
On Saturday, 1 February 2014 at 18:44:42 UTC, Dicebot wrote:On Saturday, 1 February 2014 at 17:38:44 UTC, Jesse Phillips wrote:Because more syntax is always better !alias this = foo; This is new syntax, has some edge cases which fail and intended to replace the old typedef style alias Type NewName; Such that it look more like variable assignment: alias NewName = Type;This syntax was intended to only be used for normal aliases, not "alias this", and was supposed to be removed for latter.
Feb 01 2014
On Saturday, 1 February 2014 at 16:14:59 UTC, Martin Cejp wrote:On Saturday, 1 February 2014 at 03:25:33 UTC, Mike wrote:Damn! Not sure the pun still works. Maybe it never did.alias {D Logo} this;Outdated syntax. You should use alias this = {D Logo}; instead.
Feb 01 2014
I think this whole thread should be our slogan. Mike: alias {D Logo} this; Martin: Outdated syntax. You should use alias this = {D Logo}; instead. Asman: Isn't this syntax discouraged/depreciated now? :D
Feb 01 2014
On Saturday, 1 February 2014 at 18:06:47 UTC, Chris Cain wrote:Asman: Isn't this syntax discouraged/depreciated now?The word's "deprecated" (de-prec-ate, not de-pre-she-ate). (Asman actually wrote "depracted".)
Feb 01 2014
On 02/01/2014 10:26 AM, anonymous wrote:On Saturday, 1 February 2014 at 18:06:47 UTC, Chris Cain wrote:New slogan: D'precated I hope not. :p AliAsman: Isn't this syntax discouraged/depreciated now?The word's "deprecated" (de-prec-ate, not de-pre-she-ate). (Asman actually wrote "depracted".)
Feb 01 2014
On Saturday, 1 February 2014 at 18:26:15 UTC, anonymous wrote:On Saturday, 1 February 2014 at 18:06:47 UTC, Chris Cain wrote:Yeah, I actually just right clicked the word for the correction and the i didn't register for whatever reason. Fwiw, I said the word correctly in my headAsman: Isn't this syntax discouraged/depreciated now?The word's "deprecated" (de-prec-ate, not de-pre-she-ate). (Asman actually wrote "depracted".)
Feb 01 2014
On Saturday, 1 February 2014 at 18:06:47 UTC, Chris Cain wrote:I think this whole thread should be our slogan. Mike: alias {D Logo} this; Martin: Outdated syntax. You should use alias this = {D Logo}; instead. Asman: Isn't this syntax discouraged/depreciated now? :DWait for a few seconds (time for some Garbage Collection), add an 11 kilobytes long mangled function name and a compiler crash, and you get a quite good representation of D :)
Feb 01 2014
On Saturday, 1 February 2014 at 18:32:00 UTC, Martin Cejp wrote:On Saturday, 1 February 2014 at 18:06:47 UTC, Chris Cain wrote:Now we're just being mean. :p D works great for me (it's just sometimes some of these discussions like this get me concerned over mostly trivial things).I think this whole thread should be our slogan. Mike: alias {D Logo} this; Martin: Outdated syntax. You should use alias this = {D Logo}; instead. Asman: Isn't this syntax discouraged/depreciated now? :DWait for a few seconds (time for some Garbage Collection), add an 11 kilobytes long mangled function name and a compiler crash, and you get a quite good representation of D :)
Feb 01 2014