I feel like this question is a little ambiguous. Is OOP bad for real time systems, or just automatic garbage collection? And what level of real time computing are we talking about here? There’s also stuff like this: https://en.wikipedia.org/wiki/Real_time_Java
]]>overview: http://www.parashift.com/c++-faq/refs-vs-ptrs.html
little more detail: http://www.embedded.com/electronics-blogs/programming-pointers/4023307/References-vs-Pointers
]]>http://www.parashift.com/c++-faq/refs-vs-ptrs.html
http://www.embedded.com/electronics-blogs/programming-pointers/4023307/References-vs-Pointers
map (*10) [1,2,3,4,5,54]
]]>Why does everyone want Haskell functions? I guess it really had an impact on the class.
]]>John: you are a pro for including the answer with the question. All exam questions should follow this form.
]]>Note: using two functions may be easier, but one’s pretty slick.
]]>3.times { ice(other) }
in ruby, and
for (int i = 0, i < 3, i++){
ice(other)
}
in java?
]]>