Re: Phix plus BzScript
- Posted by xecronix 3 weeks ago
- 266 views
Nothing to be worried about. The port took about 20 min. for about 2K lines. (some of which I simply deleted) It's just some "opinions" I found amusing. Good opinions. But they were amusing and forced me to make some minor changes. Most of that time was spent not ignoring return values. One function in particular I called 40 times and only cared about the return value 2ce.
I had planned to use structs, but in the end, I decided to leave my fake struct in place. The . syntax only saves me 1 char of typing at design time, and it just wasn't worth "fixing", IMO. The warning in the docs that mentioned using structs comes at a performance cost sealed the deal for me. (or gave laziness an excuse... not sure which. LOL)
I did create a user-defined function named free(). That worked when running Phix interpreted. But... it failed when attempting to compile. FWIW. Maybe it should have failed if interpreted too? Not my call.
All said, I'm excited to be working with Phix. I feel like the language and the toolchain are well suited for the work ahead.