3 ms·
"the semantics of his library are reasonably clear on inspection" does .remove() mutate in place or not ? depends on the constructor! this would be an example
by tef____ 15y ago
"the semantics of his library are reasonably clear on inspection"
does .remove() mutate in place or not ? depends on the constructor!
this would be an example of breaking composition - you can no longer use a function built for an immutable list on a mutable list. I am sure I explained this too.
a dialect is a style, in linguistic terms, if I speak a dialect of english, I still speak english.
if I needed a different parser/interpreter I am pretty sure that is the stage of 'new language' where new syntax and semantics are introduced.
the 'dialect' he is introducing is a arc/clojure inspired syntax for what /already/ exists in python.
thanks for the semantic pedantry! the long and the short of it is that if you want to write python, write python that looks like python. not like scheme or clojure.
as someone who gets paid to maintain shitty code, i'd rather people stuck to the existing idioms of the language, rather than blindly copy paste them from another language.
- timtadh 15y ago"if I needed a different parser/interpreter I am pretty sure that is the stage of 'new language' where new syntax and semantics are introduced. the 'dialect' he is introducing is a arc/clojure inspired syntax for what /already/ exists in python." No a dialect is another version of the language. For instance python3 is a dialect of python, just as python2 is. They are not 100% compatible. "as someone who gets paid to maintain shitty code, i'd rather people stuck to the existing idioms of the language, rather than blindly copy paste them from another language." It is not his problem you see a lot of shitty python. It is also not his problem if you want every one to stay stuck in the poor design choices that were made in the stdlib a long time ago. You can fight evolution of languages or you can embrace them. I don't see you advocating for "thou" in English ;-) "the 'dialect' he is introducing is a arc/clojure inspired syntax for what /already/ exists in python." "syntax" --> no thats is what is defined by the grammar of python. This is python syntax. "a dialect is a style, in linguistic terms, if I speak a dialect of english, I still speak english." No it is a mutation. But I agree with you if you speak a dialect you still speak the "language." Olde English is still English. --- However my main point remains. You are needlessly combative in this thread. He made a library you attacked him like he insulted the Pope of Python. I am sorry you maintain shitty Python but you don't need to take you anger about that out on some poor guy on hacker news.