Should a parser type be a struct or class?

Per Nordlöw per.nordlow at gmail.com
Wed Jun 17 11:50:27 UTC 2020


Should a range-compliant aggregate type realizing a parser be 
encoded as a struct or class? In dmd `Lexer` and `Parser` are 
both classes.

In general how should I reason about whether an aggregate type 
should be encoded as a struct or class?


More information about the Digitalmars-d-learn mailing list