Search Explore
  • ChicagoDave · 4 days ago

    This is very cool, though I'd want to see typed FUNCTION blocks.

    • jmmv · 4 days ago

      What do you mean? FUNCTIONs are supported, and their arguments and return values are strongly typed.

      • ChicagoDave · 4 days ago

        Sorry I missed it. I was expecting an As clause but conflating VB is probably not what is wanted.

        • VincePlatt · 1 days ago

          Very neat implementation! I freaking love how nice Rust makes this!

          Any plans to support structures in the language? I know that's not a typical Basic feature, but it would be awesome. Also, be a rebel: add block comments.

          • jmmv · 1 days ago

            Yeah, structs (records) is something I've been wanting to add and that became reasonably easy with the full rewrite of the compiler I did in 0.13. Probably in the next update!

      • sph · 3 days ago

        The demo does indeed sound like BASIC.

        • pjmlp · 2 days ago

          Always nice having an BASIC update.

          > For extra trivia, note that the convention in Visual Basic is to use CamelCase.

          This actually traces back to other BASIC dialects already in MS-DOS, I can tell this was already the common convention on Turbo BASIC, and QuickBASIC.

          There were also tools that would format to the desired way, long before go fmt became a thing.

          • bitwize · 1 days ago

            The IDEs would format the desired way as soon as you cursored off the line in some cases. This had benefits and drawbacks: it would actually parse the line, so if there was a syntax error, you had to dismiss the dialog and fix it before you could move anywhere. Kind of a pain when you're roughing out code.

            Out of modern IDEs for more conventional languages, the one that comes the closest to the behavior I want in this regard is Emacs, which is one reason I've stuck with it lo these 30 years.

            • anta40 · 1 days ago

              If you like QuickBASIC, perhaps FreeBASIC is also an interesting choice.

              For many years, it practically only supports Windows, Linux, and DOS. Now add macOS into the list: https://deb.fbxl.net/macos/

            • pkphilip · 1 days ago

              So a few questions: 1. Does this support threading? 2. Can I develop my website using this? 3. Can I develop a Claude competitor using this?

              Much thanks!