July 18, 2006 DMD 0.163 release | ||||
|---|---|---|---|---|
| ||||
http://www.digitalmars.com/d/changelog.html This has all the new import changes in it. That breaks a lot of existing code (like dmdscript), the fixes are simple (adding more import declarations) but tedious. I couldn't find a better keyword choice than "static import". The renaming uses '=' instead of 'as', 'from', or 'alias' for the reasons: 1) didn't want to add new keywords, especially ones like 'as' as I use that as a variable name 2) didn't need to add new keywords - adding them should be done only if using punctuation is completely unappealing 3) using '=' and ':' is visually more distinct than embedded keywords. | ||||
July 18, 2006 Re: DMD 0.163 release | ||||
|---|---|---|---|---|
| ||||
Posted in reply to Walter Bright | Walter Bright wrote:
>
> http://www.digitalmars.com/d/changelog.html
>
> This has all the new import changes in it. That breaks a lot of existing code (like dmdscript), the fixes are simple (adding more import declarations) but tedious.
>
> I couldn't find a better keyword choice than "static import".
>
> The renaming uses '=' instead of 'as', 'from', or 'alias' for the reasons:
>
> 1) didn't want to add new keywords, especially ones like 'as' as I use that as a variable name
>
> 2) didn't need to add new keywords - adding them should be done only if using punctuation is completely unappealing
>
> 3) using '=' and ':' is visually more distinct than embedded keywords.
Thanks!! I'll try it out soon.
| |||
July 18, 2006 Re: DMD 0.163 release | ||||
|---|---|---|---|---|
| ||||
Posted in reply to Walter Bright | Walter Bright wrote: > > http://www.digitalmars.com/d/changelog.html > > This has all the new import changes in it. That breaks a lot of existing > code (like dmdscript), the fixes are simple (adding more import > declarations) but tedious. > > I couldn't find a better keyword choice than "static import". > > The renaming uses '=' instead of 'as', 'from', or 'alias' for the reasons: > > 1) didn't want to add new keywords, especially ones like 'as' as I use that as a variable name > > 2) didn't need to add new keywords - adding them should be done only if using punctuation is completely unappealing > > 3) using '=' and ':' is visually more distinct than embedded keywords. Whatever harsh words I came with a week ago, they are forgotten. A wonderful release :D (Especially since I don't see the need for the static version so I won't ever be bothered by the presence of the static keyword.) -- Lars Ivar Igesund blog at http://larsivi.net DSource & #D: larsivi | |||
July 18, 2006 Re: DMD 0.163 release | ||||
|---|---|---|---|---|
| ||||
Posted in reply to Walter Bright | Walter Bright wrote: > > http://www.digitalmars.com/d/changelog.html > > This has all the new import changes in it. That breaks a lot of existing code > (like dmdscript), the fixes are simple (adding more import declarations) but > tedious. > > I couldn't find a better keyword choice than "static import". > > The renaming uses '=' instead of 'as', 'from', or 'alias' for the reasons: > > 1) didn't want to add new keywords, especially ones like 'as' as I use that as a variable name > > 2) didn't need to add new keywords - adding them should be done only if using punctuation is completely unappealing > > 3) using '=' and ':' is visually more distinct than embedded keywords. Thank you for solving this import issues. Great step forward for modular programming in D. -- | |||
July 18, 2006 Re: DMD 0.163 release | ||||
|---|---|---|---|---|
| ||||
Posted in reply to Walter Bright | In article <e9jfdd$1sb0$1@digitaldaemon.com>, Walter Bright says... > > >http://www.digitalmars.com/d/changelog.html > >This has all the new import changes in it. That breaks a lot of existing code (like dmdscript), the fixes are simple (adding more import declarations) but tedious. > >I couldn't find a better keyword choice than "static import". > >The renaming uses '=' instead of 'as', 'from', or 'alias' for the reasons: > >1) didn't want to add new keywords, especially ones like 'as' as I use that as a variable name > >2) didn't need to add new keywords - adding them should be done only if using punctuation is completely unappealing > >3) using '=' and ':' is visually more distinct than embedded keywords. Walter, just want to voice my thanks also: thanks for listening in regards to the imports issues. It really seems you put some work into implementing a balanced solution that meets different peoples needs. It's a real challenge to convince you, and it seems we still have to find out where you are most vulnerable to being convinced ;) (C++ angle mostly, it seems, unfortunately; and, no I don't believe you are convinced by good solid evidence: you are quite biased in your opinions). Nonetheless, thanks for going the distance despite the upheaval that took place. What you do is not unnoticed! Those of us working hard to make D stand out in this world really want to see D at it's best. -JJR | |||
July 18, 2006 Re: DMD 0.163 release | ||||
|---|---|---|---|---|
| ||||
Posted in reply to Walter Bright | Walter Bright wrote:
>
> http://www.digitalmars.com/d/changelog.html
Great work, thanks!
xs0
| |||
July 18, 2006 Re: DMD 0.163 release | ||||
|---|---|---|---|---|
| ||||
Posted in reply to Walter Bright |
Walter Bright wrote:
>
> http://www.digitalmars.com/d/changelog.html
>
> This has all the new import changes in it. That breaks a lot of existing code (like dmdscript), the fixes are simple (adding more import declarations) but tedious.
>
> I couldn't find a better keyword choice than "static import".
>
> The renaming uses '=' instead of 'as', 'from', or 'alias' for the reasons:
>
> 1) didn't want to add new keywords, especially ones like 'as' as I use that as a variable name
>
> 2) didn't need to add new keywords - adding them should be done only if using punctuation is completely unappealing
>
> 3) using '=' and ':' is visually more distinct than embedded keywords.
Thanks, I'm trying this new sutff out!
P.S.
I just noticed a "bug" on the website: I'm using IE7 (Beta 3) and the download link on the top doesn't work unless I point the mouse at the top edge of the "box".
| |||
July 19, 2006 Re: DMD 0.163 release | ||||
|---|---|---|---|---|
| ||||
Posted in reply to Walter Bright | Walter Bright wrote:
>
> http://www.digitalmars.com/d/changelog.html
>
> This has all the new import changes in it. That breaks a lot of existing code (like dmdscript), the fixes are simple (adding more import declarations) but tedious.
>
> I couldn't find a better keyword choice than "static import".
>
> The renaming uses '=' instead of 'as', 'from', or 'alias' for the reasons:
>
> 1) didn't want to add new keywords, especially ones like 'as' as I use that as a variable name
>
> 2) didn't need to add new keywords - adding them should be done only if using punctuation is completely unappealing
>
> 3) using '=' and ':' is visually more distinct than embedded keywords.
*Imports now default to private instead of public. Breaks existing code.*
Horray! :) This shouldn't break too much of my code because I already use 'private import' everywhere.
*Object.opCmp now throws an error. Should override it if used. Breaks existing code.*
Can someone spell this out for me? *confused*
*Added static imports, renamed imports, and selective importing.*
Can someone show me how this is supposed to work as well? *confused*
Thanks! Nice to see some positive changes.
~ Clay
| |||
July 19, 2006 Re: DMD 0.163 release | ||||
|---|---|---|---|---|
| ||||
Posted in reply to Walter Bright | Walter Bright wrote:
>
> http://www.digitalmars.com/d/changelog.html
>
> This has all the new import changes in it. That breaks a lot of existing code (like dmdscript), the fixes are simple (adding more import declarations) but tedious.
>
> I couldn't find a better keyword choice than "static import".
>
> The renaming uses '=' instead of 'as', 'from', or 'alias' for the reasons:
>
> 1) didn't want to add new keywords, especially ones like 'as' as I use that as a variable name
>
> 2) didn't need to add new keywords - adding them should be done only if using punctuation is completely unappealing
>
> 3) using '=' and ':' is visually more distinct than embedded keywords.
omg it's uber!!111
Imports private by default, I likey.
Thanks Walter!
| |||
July 19, 2006 Re: DMD 0.163 release | ||||
|---|---|---|---|---|
| ||||
Posted in reply to Walter Bright | Walter Bright wrote: > > http://www.digitalmars.com/d/changelog.html > > This has all the new import changes in it. That breaks a lot of existing code (like dmdscript), the fixes are simple (adding more import declarations) but tedious. > > I couldn't find a better keyword choice than "static import". > > The renaming uses '=' instead of 'as', 'from', or 'alias' for the reasons: > > 1) didn't want to add new keywords, especially ones like 'as' as I use that as a variable name > > 2) didn't need to add new keywords - adding them should be done only if using punctuation is completely unappealing > > 3) using '=' and ':' is visually more distinct than embedded keywords. Excellent! -- Kirk McDonald Pyd: Wrapping Python with D http://dsource.org/projects/pyd/wiki | |||
Copyright © 1999-2021 by the D Language Foundation
Permalink
Reply