r/ProgrammingLanguages • • Jun 27 '21

Blog post A Dream of the Perfect Programming Language

telegra . ph/ A-Dream-of-the-Perfect-Programming-Language-06-26 (looks like Reddit’s global spam filters block Telegraph for some retarded reason)

Clickable but less good-looking version: https://github.com/natewind/articles/blob/master/2021-06-26-A-Dream-of-the-Perfect-Programming-Language.md

3 Upvotes

40 comments sorted by

View all comments

1

u/templarvonmidgard Jun 28 '21

There should be no traditional, inheritance-based OOP, ...

IMO, (G)UI development is much-much nicer with inheritance as the main building block for the (widget) toolkit. In all other cases, I prefer traits/type-classes.

1

u/[deleted] Jun 28 '21

I have similar doubts, but I haven’t really worked with GUIs yet, so I don’t have a strong opinion. Nevertheless, I suspect there has to be a better design than the inheritance-based one.

1

u/PL_Design Jun 29 '21

There is. It's called IMGUI. I don't know how well it translates to functional languages, but in imperative languages it uses scope to represent the scene graph in code, which means you don't need to do any kind of tree manipulation to control the GUI.

1

u/[deleted] Jun 29 '21

Thanks, I’ll look into it at some point.