objeck / objeck-lang

Objeck is a modern object-oriented programming language with functional features tailored for machine learning. It emphasizes expression, simplicity, portability, and scalability. The programming environment consists of a compiler, virtual machine, REPL shell, and command line debugger with IDE plugins.
https://objeck.org
Other
154 stars 11 forks source link

Does the `-alt` switch still work? #410

Closed ghost closed 9 months ago

ghost commented 9 months ago

This is your answer in #273:

It's obsolete but harmless.

It now allows you to use things such as C++ operators like ==, !=, and comments.

The compiler used to require that a semi-colon is at the end of each statement block. This constraint was removed.

Could you clarify more? Especially, this line:

The compiler used to require that a semi-colon is at the end of each statement block. This constraint was removed.

Yes, I know this constraint has been removed. But, is the -alt switch originally used to overcome this constraint, or does it force this constraint?

I'm exploring the -alt switch, because I'm really want to use C like comments.

objeck commented 9 months ago

Adding support for C comments so one does not have to use the -alt flag.

ghost commented 9 months ago

Adding support for C comments so one does not have to use the -alt flag.

Will you support both <> and !=? I think people still need -alt to use !=. Btw, if using -alt, does <> still work, or != has to be used instead? I'm just curious.

objeck commented 9 months ago

-alt switchs operations like: objeck = to c ==, same for not equal. I will keep the switch, it is legacy and rarely asked about.