digitalmars.D.dwt - Ugh, we need a dface
- Bill Baxter <dnewsgroup billbaxter.com> May 19 2008
- Frank Benoit <keinfarbton googlemail.com> May 19 2008
- Bill Baxter <dnewsgroup billbaxter.com> May 19 2008
- Frank Benoit <keinfarbton googlemail.com> May 19 2008
I was just porting some JFace snippets to try to get a better feel for how it works and what it can do. And all I can say is ugh. It's just waaaaay too Java-esque for D. Absolutely everything is an interface that casts every bit of data it handles to and from Object. Ick. Some sort of slightly more D-ish way to wrap and enhance DWT would sure be nice. Something that takes advantage of D's templates instead of casting all over the place. --bb
May 19 2008
Bill Baxter schrieb:I was just porting some JFace snippets to try to get a better feel for how it works and what it can do. And all I can say is ugh. It's just waaaaay too Java-esque for D. Absolutely everything is an interface that casts every bit of data it handles to and from Object. Ick. Some sort of slightly more D-ish way to wrap and enhance DWT would sure be nice. Something that takes advantage of D's templates instead of casting all over the place. --bb
For such, we sure do not need to change the name ;) Do you have concrete suggestions how to do that?
May 19 2008
Frank Benoit wrote:Bill Baxter schrieb:I was just porting some JFace snippets to try to get a better feel for how it works and what it can do. And all I can say is ugh. It's just waaaaay too Java-esque for D. Absolutely everything is an interface that casts every bit of data it handles to and from Object. Ick. Some sort of slightly more D-ish way to wrap and enhance DWT would sure be nice. Something that takes advantage of D's templates instead of casting all over the place. --bb
For such, we sure do not need to change the name ;) Do you have concrete suggestions how to do that?
My approach would probably be to try to build something mirroring Qt's API as closely possible using DWT as the platform-independent implementation layer. With a dose of opApplys and delegates and/or function alias templates. --bb
May 19 2008
Bill Baxter schrieb:Frank Benoit wrote:Bill Baxter schrieb:I was just porting some JFace snippets to try to get a better feel for how it works and what it can do. And all I can say is ugh. It's just waaaaay too Java-esque for D. Absolutely everything is an interface that casts every bit of data it handles to and from Object. Ick. Some sort of slightly more D-ish way to wrap and enhance DWT would sure be nice. Something that takes advantage of D's templates instead of casting all over the place. --bb
For such, we sure do not need to change the name ;) Do you have concrete suggestions how to do that?
My approach would probably be to try to build something mirroring Qt's API as closely possible using DWT as the platform-independent implementation layer. With a dose of opApplys and delegates and/or function alias templates. --bb
Oh, you mean instead jface, implement something completely new? Sounds like a lot of work. I thought it might perhaps be possible to add some helper to JFace to make it feel more D-like.
May 19 2008








Frank Benoit <keinfarbton googlemail.com>