Re:Perl6: Unary Sort
by orblivion on Monday December 23, 2013 @09:58AM
(#6954537)
This caught my eye as well. As a Python programmer who never learned Perl, this validates some stereotypes. Or maybe it's the budding Haskell programmer in me. "smart enough"? Sounds pretty dangerous to me.
[ Parent
| on HN ]
I don't know what stereotypes you are referring to, but Perl is actually one of the better loosely typed languages for not causing the aforementioned bugs. And also one of the best languages for not overloading operators too (which is one of the reasons it looks like executable line noise)
So don't use the comparison operator that attempts to detects the correct type and use the operator made for the specific type you know you are comparing?
Re:Perl6: Unary Sort
by adrianmsmith on Monday December 23, 2013 @12:58PM
(#6955528)
If an operator has no use (i.e. you should always use a type-specific operator) then why is it in the language at all? If it's there, someone will use it, and if it shouldn't be used, then that's bad that someone uses it.