I was not talking about diamond inheritance. I was talking about ``` Numeric Float IndefiniteNumeric IndefiniteInteger IndefiniteFloat Integer ... ``` vs ``` Numeric Float IndefiniteFloat Indef...Student (Nathan Zook)
Suppose someone deals five cards face down from a regulation poker deck, and we wish to reason about the number of aces. We know that that number is one of zero, one, two, three, or four. Therefore, if someone asks "is this number larg...Student (Nathan Zook)
Enumerables at times can be quite expensive to complete expand. If all is desired is to compare the count, we can terminate the enumeration once the result is known. The functionality that I envision, if implemented in ruby, might lo...Student (Nathan Zook)
josh.cheek (Josh Cheek) wrote in #note-9: > It's intentional. Eg what if you set the same variable in both branches? Then it would be clearer that you are expecting the variable to be visible outside the scope of the conditional. > ... I...Student (Nathan Zook)
marcandre (Marc-Andre Lafortune) wrote in #note-31: > I'm sorry, I am completely confused by this discussion, I can't make sense of it. > ... THIS. Sets are in no way related to Hashes. The fact that they are/can be *implemented* a...Student (Nathan Zook)
mame (Yusuke Endoh) wrote in #note-9: > I expect that `ary + set` return a Set, not an Array, unless it raises an exception. > ... I found implicit conversions of values in K&R to be an abomination BEFORE I became aware of the many, ma...Student (Nathan Zook)
I cannot say that I am a fan of this proposal. To be fair, I'm not a fan of #|. Arrays are not sets. Trying to treat them as if they are is an error, and will create subtle problems. What should be the result of the following ope...Student (Nathan Zook)
As a mathematician, this suggestion really has my attention. First, I almost never write a <= b && b < c. What I do write is some form of (a...c) === b. There are two reasons for this. In the first case, b is being repeated, and we...Student (Nathan Zook)
I think that you might not have understood his concern. Getting multi-threaded code right is hard, no matter the primitives available. "People who know well about thread programming can use this feature using concurrent-ruby and I don'...Student (Nathan Zook)