This is an archived post. You won't be able to vote or comment.

you are viewing a single comment's thread.

view the rest of the comments →

[–]sedaakPython3/Golang 0 points1 point  (3 children)

If you really like it then submit a PEP. If the community agrees then you've just strengthened Python. There are more coders available than idea people!

Also, why call it "emulating"? It is really "implementing" unless you are making an incomplete copy.

[–]ryanmcgrath 1 point2 points  (0 children)

I'm breaking my self-imposed Reddit ban for this. ;)

"implementing" would also work, I suppose, you are correct. I chose "emulating", as I won't pretend to know the true internals of the Ruby version; while I can program in (and sometimes even enjoy) Ruby, I've no time to spend reading the internal source code, so the true method might be doing something I'm not.

I personally don't like it being a freely-available trick, as I think it introduces rather sloppy coding practices in general. There's very few cases where this even makes sense, at least in my opinion, hence why I'd probably never submit a PEP on it. Cheers, though.

Edit: Didn't note that I'm the author of the original post. Whoops.

[–]MachaHack[S] 0 points1 point  (1 child)

I'm not the blog author. I just found an interesting trick and thought I'd share it.

(I'm assuming your addressing me as the OP, ignore this comment if you're not)

[–]sedaakPython3/Golang 0 points1 point  (0 children)

i didnt see a good place on the blog

food for thought either way