fix-simple-binary-encoding icon indicating copy to clipboard operation
fix-simple-binary-encoding copied to clipboard

Enum name attribute too restrictive

Open peterdsdoyle opened this issue 5 years ago • 1 comments

Currently an Enum name is restricted to 'symbolicName'. This can be restrictive for a system that requires encoding of known names Eg. ApplicationId->RET-AD RET-AD could not be encoded as an Enum name and would therefore need to be altered to some other form such as RET_AD, this imposes complexity for upstream and downstream systems to map from/to the 'known' value. [real-logic/simple-binary-encoding/issues/760]

peterdsdoyle avatar Mar 05 '20 01:03 peterdsdoyle

The current rule for SBE names is similar to identifier rules in C++:

  • Allows alpha, digit, underscore
  • Cannot begin with a digit

Other programming languages are similar.

How would it work if SBE allowed hyphen?

A specific proposal would be helpful for discussion.

donmendelson avatar Mar 27 '20 15:03 donmendelson