digitalmars.D.dwt - Ugh, we need a dface
- Bill Baxter (8/8) May 19 2008 I was just porting some JFace snippets to try to get a better feel for
- Frank Benoit (3/13) May 19 2008 For such, we sure do not need to change the name ;)
- Bill Baxter (6/21) May 19 2008 My approach would probably be to try to build something mirroring Qt's
- Frank Benoit (5/29) May 19 2008 Oh, you mean instead jface, implement something completely new?
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. --bbFor 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: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. --bbI 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. --bbFor such, we sure do not need to change the name ;) Do you have concrete suggestions how to do that?
May 19 2008
Bill Baxter schrieb:Frank Benoit wrote: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.Bill Baxter schrieb: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. --bbI 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. --bbFor such, we sure do not need to change the name ;) Do you have concrete suggestions how to do that?
May 19 2008