Adding VAR makes the world of difference, I couldn’t believe how much my life improved when I could type var instead of dim. Pffft…
Ironically, in the code I’ve written over the last few days, I’ve had to use VAR, but I think I have used LET. Understanding the difference is one thing, but going from a language that doesn’t differentiate mutability to writing full time in one that does, is a mind switch.
Ironically I felt more comfortable with Objective-C using different classes to differentiate mutability.
That’s kind of the point though. He had people around him telling him it was a bad idea. I was saying it when I was still with Xojo, back when it was called the new Xojo framework. Yes, there were things to fix. No, we didn’t need to throw the baby out with the bathwater.
If Xojo were being developed today from scratch, API 2 would be fine. I mean, there’s nothing particularly wrong with the changes. Opening and Pressed probably are better event names. But Xojo comes with legacy, and that was essentially ignored.
The reality is there was no fix. So you suck it up and know that you want those event names, but there’s too much legacy that you don’t want to disrupt, and you live with it.
Every language has this problem. You don’t think the PHP devs wouldn’t love to go back and make strpos and str_replace more consistently named? Hell yeah they would. But it’s not worth the trouble.
I’ve been saying this since the idea was first brought up. Initially privately of course.