[Ur] last type decl wins?

Vag Vagoff vag.vagoff at gmail.com
Sat Apr 16 11:00:49 EDT 2011


On 16.04.2011 17:57, Marc Weber wrote:
> Let me rephrase:
> name collisions should be avoided at the same level.
> or at the top level of the *same* module as seen in my example.
>
> If you choose the same name as other libraries usually you can use full
> qualified names ..
>
> You as programmer can take care. However think about two people changing
> code - bot introducing a var called "row".
>
> Then you don't want shadowing. You want a warning / compilation failure.
>
> Don't think its important enough to continue this discussion right now.
>

Yes, it is exactly what I've tried to say!

And yes, if you use name from imported module and it appeared later in other imported module, warnings will be very
very appreciated.

Vag.



More information about the Ur mailing list