Skip to main content
Lucrecious's user avatar
Lucrecious's user avatar
Lucrecious's user avatar
Lucrecious
  • Member for 1 year, 7 months
  • Last seen more than 1 year ago
comment
What are common approaches to representing types within a compiler?
Not necessarily. An enum can be converted to an integer in most languages so custom types use the same enums but within a user range, in my case it's between 15-60000. That way I can keep the size of individual types capped at 16 bits.
Loading…
awarded
awarded
revised
Allowing `}` as a statement terminator in an expression-based language?
added an example for compilation enforcing a programming style
Loading…
awarded
comment
Allowing `}` as a statement terminator in an expression-based language?
What if OP wants to use syntax like: { 1; } + { 1; };? A statement separator is still necessary, no?
Loading…