4 ms·
> Javascript is what PHP should be since day 1. ReasonML or ReScript is what JS should have been since day 1.
by cies 5y ago
> Javascript is what PHP should be since day 1.
ReasonML or ReScript is what JS should have been since day 1.
- revskill 5y agoIt's not fun sir. What's the point of those $$$ mark for variables ? Make no sense at all. Easy adoption for all levels of programmers is what make it work for enterprise applications now.
- bnt 5y agoHey, here’s someone who never saw Perl and doesn’t know how PHP evolved.
- 9dev 5y agoFor one thing, it makes the distinction between language keywords and variables clear - no problems in using `$switch` or `$var`, and even more important, the core devs don't have to take as much care when developing new language features. Not that I usually use variable names like these, but it quickly becomes automatic to use a dollar sign.
- christophilus 5y agoScheme is what JS should have been since day 1.
- cestith 5y agoGuile in the browser would make plenty of sense had someone not shoved the mess that was early JS into the world.
- cies 5y agoThis is in fact an alternative universe I have thought about quite a bit. I'm more on the strong-typed side of life nowadays. But otherwise I think it is a good choice. Also: HTML could be expressed in scheme as well. Scheme all the way down.