|
|
|
|
|
by Twirrim
2618 days ago
|
|
> I used to be a big fan of "more than one way to do it" I used to firmly believe that that was the way a programming language should be. Let me do what I want to do, however I want to do it. I've finally found myself falling in to almost the complete opposite, with a small addition: "There should be one way to do it, and it should be obvious" Python mostly scratches that itch for me, but even there it has multiple methods to do the same stuff within the standard library, like list.sort() and sorted(list) https://medium.com/@DahlitzF/list-sort-vs-sorted-list-aab92c... |
|
"...A fundamental concept in the design of Lua is to provide meta-mechanisms for implementing features, instead of providing a host of features directly in the language. For example, although Lua is not a pure object-oriented language, it does provide meta-mechanisms for implementing classes and inheritance. Lua's meta-mechanisms bring an economy of concepts and keep the language small, while allowing the semantics to be extended in unconventional ways."