What is your favourite Odin feature?

I really like the convenience of the vendor libs and I also like not having to call vcvarsall.bat before starting to program and not having to know/use a thousand compiler flags in most cases. Convenience in general.

1 Like

I like that all the things that I used to do as best practices in C are the default in Odin. I also like that Odin implements many of the things I used to custom-build in C, and it is done exactly how I want it.

Stuff like:

  • Zero is initialized
  • Custom allocators and temp allocators
  • Tracking allocator
  • Designated initializers
10 Likes

My favourite Odin feature is @gingerBill as a BDFL, saying NO to “feature” requests, keeping the language as clean and productive as possible.

6 Likes
  • Bit sets
  • Enumerated arrays
  • defer
  • Array programming
  • Package system
  • Terseness & simplicity
  • Default temporary allocator
  • Batteries-included philosophy
  • Little to no friction

It almost feels like using a high-level language, yet with all the power & control you’ll ever need.

1 Like

For sure using just doing so easily composition of types is amazing.
It allows for some quite amazing constructs.

I also like the builtin tagged union is so convenient.

And defer is basically the unique answer to i don’t use RAII stuff but just say when i want to scope kill something.