Hacker News new | ask | show | jobs
by 0xbadcafebee 1949 days ago
Why are there so many different languages that are almost the same except for one or two attributes? Why not make one language that can do everything?

If you can make one language strongly typed, and one weakly typed, then you should be able to build one language which can do either/or, depending on a compiler flag. Then you simply decide before you start writing your code whether you want to write it weakly typed or strongly typed, and pass the correct compiler option.

Take that same idea, but add in every language's quirks, and just enable/disable them. Then we wouldn't need to constantly reinvent languages, because we'd have one that can do everything.

Otherwise we're going to keep re-writing the same damn thing for hundreds of years, and that just seems like such a pointless waste of effort.

2 comments

I think that's what Larry Wall was trying to do with Perl6/Raku:

https://thenewstack.io/larry-walls-quest-100-year-programmin...

Have you looked at the Raku Programming Language? https://raku.org using the #rakulang tag on social media.