On Wed, 2016-06-01 at 14:37, DNF <[email protected]> wrote: > Out of curiosity: My understanding has been that type instabilities are > related to the compiler not being able to predict the types of variables > based on input types, not variables simply (and predictably) changing types > during program execution. > > Should the compiler ideally be able to catch the case we're seeing here, > and predict that bar should be a float? Or is this case particularly hard > for some reason?
I think this was discussed yesterday or the day before in this thread: https://groups.google.com/d/msg/julia-users/gKQnJyUhc5Y/KC64yfDhAQAJ
