Koen Ursem wrote:I wonder if R3 would be up for GC at line 10 when there is no further use of the variable two in the current scope, or on line 12 where the scope of the current codeblock ends?
Sam Peterson wrote:
Also, since we still have the R3 object that's not eligible for garbage collection at the end of this program, what is the lifespan of that object and the two reference variable after the program finishes?
Liutauras Vilda wrote:But in order to ensure, that returned result (sum) is in fact the result of the collection/array you intended to pass (and not somewhat wiped out, meaning with no elements), one has to introduce such check. Isn't that what Optional would serve, just in nicer way?
Marlon Mellow wrote:i saw codes that uses methods but i dont know if its applicable to this one? if it is, then do you have suggestions on where to use it?
Marlon Mellow wrote:any suggestions that doesn't used advanced codes (since it's not allowed) is welcome
Piet Souris wrote:But the Zen is getting worse, here: what is the sound of ZERO clapping hands?
Kent Beck wrote:... people get passionate about coding style. While there are undoubtedly better styles and worse styles, the most important style issue is that the team chooses to work towards a common style. Idiosyncratic coding styles and the values revealed by them, individual freedom at all costs, don’t help the team succeed.
Wikipedia entry for 0 wrote:Zero is a number which quantifies a count or an amount of null size