You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Though a number of the features are exciting, one seems particularly relevant to hardware design: "enhanced enums with members". Previously, with Dart enums you couldn't define the value of an enum which is sometimes a crucial capability that's available in SystemVerilog, for example if you want an enum for opcodes with a sparse encoding. With this new feature, you can add an int or other member variable to an enum, which should make modelling hardware that relies on this type of enum much easier!
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
Google announced Dart 2.17 yesterday:
https://medium.com/dartlang/dart-2-17-b216bfc80c5d
Though a number of the features are exciting, one seems particularly relevant to hardware design: "enhanced enums with members". Previously, with Dart enums you couldn't define the value of an enum which is sometimes a crucial capability that's available in SystemVerilog, for example if you want an enum for opcodes with a sparse encoding. With this new feature, you can add an
int
or other member variable to an enum, which should make modelling hardware that relies on this type of enum much easier!Beta Was this translation helpful? Give feedback.
All reactions