=> Re: "Trying out odin language" | In: u/LucasMW
Oh, gotcha! Yeah, Golang also lets you do for {
with no expression, and it acts like a while loop. I think the idea is if we have that, then we don't need a separate keyword while
that does the exact same. But yeah, that is an interesting choice, but you get used to it. For loops are just while loops with a variable counter, tbh. If you take away the variable initializer and the variable incrementer from a for loop, you literally get a while loop.
Note that Odin does have do { } while
loops for those who use them (I don't like do... while loops).
2024-10-25 ยท 3 months ago
=> ๐ LucasMW [OP] ยท Oct 25 at 22:04:
By the way, Do you know a good devtool for odin? I use sublime text, (odin creator also seems to use it), but I still haven't find how to configure it to have decent autocomplete (showing me all functions of said import) or how to "go to definition" of functions from core and vendor libraries. I wish I had these both
=> ๐ clseibold ยท Oct 25 at 22:14:
@LucasMW Yeah, there's ols (Odin Language Server), but I don't know if it supports sublime. I know it supports VSCode and you can get it on the new Zed text editor too (https://zed.dev). You can find ols here:
If you are using VSCode or Zed, then just download the Odin extension for the respective text editor, and ols will be downloaded by those extensions.
=> ๐ LucasMW
Trying out odin language โ Doing some experiments with odin and raylib It is small demo of a bf runner, coupled together with some audio shaders demo I found on the web that I used as a starting point. I expected being able to share some pictures of it here, but I will be fighting de 100kb limits to post something nice to look at. odin has an structure that I find many different from what I am used to, specially in loops [preformatted] It is weird to me. Coming with raylib, miniaudio and...
=> /u/LucasMW/image/351.jpeg | ๐ฌ 5 comments ยท 1 like ยท 2024-10-25 ยท 3 months ago ยท #odin #programming This content has been proxied by September (ba2dc).Proxy Information
text/gemini; charset=utf-8