Making a programming language - Fixing enums

Поділитися
Вставка
  • Опубліковано 7 січ 2025

КОМЕНТАРІ • 6

  • @seppotaalasmaa3404
    @seppotaalasmaa3404 Місяць тому

    Who needs a programming language anyway? one could just do ones and zeros like this: 0010100101010101010101000101

    • @KolemanNix
      @KolemanNix  Місяць тому

      It's truly all just syntactic sugar

  • @swedishpsychopath8795
    @swedishpsychopath8795 2 місяці тому +2

    Too much boilerplate superfluous stuff. You need to trim it down A LOT! Get rid of semicolons, colons and "type", "fn", "let", "val". Replace print with "?" or something similar, but simple. Have only 1 datatype that corresponds to a byte and BUILD upon that to make the other types by using OOP principles. BTW: do you have ANY formal training in compiler design?

    • @voltairespuppet
      @voltairespuppet 2 місяці тому +2

      This feels like a sarcastic post, but it's hard to tell these days

    • @KolemanNix
      @KolemanNix  2 місяці тому +1

      Indeed, the part about turning a Byte into other types using OOP was my favorite part. Also completely missing that we were looking at a very contrived sample program that was explicitly exercising every combination of explicitly passed vs inferred type parameters

    • @swedishpsychopath8795
      @swedishpsychopath8795 2 місяці тому +1

      @@KolemanNix 😂