# Will Julia ever fix its "using ..." latency problems?

**URL:** https://discourse.julialang.org/t/will-julia-ever-fix-its-using-latency-problems/50659
**Category:** Performance
**Created:** [November 23, 2020, 11:57pm UTC](https://discourse.julialang.org/t/will-julia-ever-fix-its-using-latency-problems/50659 "2020-11-23T23:57:55Z")
**Posts on this page:** 1
**Showing post:** 91

<div class="post-metadata">

### Author: ![Henrique\_Becker](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/henrique_becker/32/15443_2.png) [@Henrique\_Becker](https://discourse.julialang.org/u/Henrique_Becker)
#### Post date: [November 26, 2020, 6:57pm UTC](https://discourse.julialang.org/t/will-julia-ever-fix-its-using-latency-problems/50659/91 "2020-11-26T18:57:52Z")

</div>

> [@FedericoStra](#):
>
> then in this case tell me of what use it is the possibility to redefine a `const` in an interactive session

One possible outcome of undefined behavior include the code working as you would expect if the variable was not `const`. This is clearly intended for REPL use (the documentation says so). The basic idea is: instead of closing and opening the REPL again to redefine a `const` variable, I can try my luck and just redefine it to make a fast test I wanted to do; if it behaves as I expected this change to behave, then I had luck in my favor and this saved me a few seconds, if something else happens then I did not have luck on my side and will have to restart to adequately test what I wanted. Simple as that. It is a luck/chance/probability/bayesian thing. You have the possibility of play dice with the compiler and get some not-entirely-trustworthy information.

> [@FedericoStra](#):
>
> Redefining a `const c` means that occurrences of `c` can have any possible value that it has ever had during the entire session. This is not UB; it i closer to undefined value, unpecified value, unspecified behavior, whatever you want to call it.

I am not sure if the possible changes in behavior are restricted to just to that one. I understand your point now, if this is the only possible behavior (i.e., the code _may or may not_ act as any of the previous values was yet assigned to the variable) then you could infer more things and not worry about having your disk formatted, XD. It would be better to inquire someone from the Julia internals development about this. In particular, I am not sure if changing the `const` variable to an object of another type will always error, or it may accept it and end up with a segmentation fault when the variable is referenced, as the object address may not be inlined but the type information can be, for example.

---

_[View the full topic](https://discourse.julialang.org/t/will-julia-ever-fix-its-using-latency-problems/50659)._
