Skip to content

Commit

Permalink
Update magma_2_migration_guide.md
Browse files Browse the repository at this point in the history
  • Loading branch information
leonardt committed Dec 13, 2019
1 parent 926a79a commit e6e2cc6
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion docs/magma_2_migration_guide.md
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,9 @@
is used for the key/value version (e.g. x.a, x.y, ...). Magma previously
used Tuple to represent both versions. This change is in line with the
`hwtypes` `Tuple` and `Product` types (as well as Python's `tuple` vs
`namedtuple`).
`namedtuple`). `"anon"` is the name of the type (before all magma tuples
were "anonymous"). We are considering an interface for declaring
anonymous Products so the user does not have to supply a name.
* `<Tuple>.Ks` -> `<Tuple>.keys()` and `<Tuple>.Ts` -> `<Tuple>.types()` these
attributes were refactored to methods to be more clear/consistent with the
hwtypes tuple.
Expand Down

0 comments on commit e6e2cc6

Please sign in to comment.