[Ur] last type decl wins?

Marc Weber marco-oweber at gmx.de
Sat Apr 16 10:57:19 EDT 2011


Let me rephrase: 
name collisions should be avoided at the same level.

Eg
  let X = 10
      Y = 20
      X = 30
  in
    ..

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.

Marc Weber



More information about the Ur mailing list