Friday, June 15, 2018

I understand that PLT (programming language theory) is hard, that syntax is hard, that making a programming language that doesn't suck is truly really hard.

but.

but, I find it depressing that so many languages seem to be designed to make things I think are important and wish were easy, really hard.

To wit, so far it looks to me like Typescript (a) doesn't have mixins or delegation, and (b) requires the use of 'this' all the time. So I end up with "this.hasa.field" type verbosity all over the place. I guess I could reduce it by making lots of property accessor wrappers on "this" to turn it into "this.hfield" or something, but all in all I shake my fist at the sky and at Hejlsberg.

(no, I am not smart enough to make a good language. just whiny enough to point out that everything kind of sucks.)

(The same sort of thing happens to me in Java whenever I try to do anything other than vanilla missionary position type Java class based OO inheritance crap. Maybe it has gotten somehow less stick-in-the-eye horrible over time, does Java have polymorphic 'this' now or something like that, so that even just trying to write Factories instead of using new() actually isn't a living hell?)

No comments:

Post a Comment