macMikey / LCB-missing-manual

I'm trying to learn LCB, again, but the docs are thin.
MIT License
4 stars 4 forks source link

case-sensitivity inconsistencies #13

Closed macMikey closed 2 years ago

macMikey commented 2 years ago

It looks like types have to be Capitalized

Type
  : <Name: Identifier>
  | 'optional' <Target: Type>
  | 'any'
  | 'nothing'
  | 'Boolean'
  | 'Integer'
  | 'Real'
  | 'Number'
  | 'String'
  | 'Data'
  | 'Array'
  | 'List'
  | 'Pointer'

BUT, i have to check is a with lowercase, e.g. is a number

bwmilby commented 2 years ago

I think that is just the syntax. "is a boolean" is an operator.

macMikey commented 2 years ago

that won't be confusing at all, when someone is going to think they should type is a Boolean

bwmilby commented 2 years ago

Possibly, but at least this is clearly documented. Commands are always lower case (which is why variables should be mixed case).