Ah, yes, #C23 finally blesses us with tag compatibility, because who doesn't love redefining #structs in their spare time? 🥱✨ #GCC and #Clang are here to save us from the horrors of incompatible parameters—truly a thrilling adventure in "do we really need this?" 🚀🔧
https://nullprogram.com/blog/2025/06/26/ #Cplusplus #TagCompatibility #ProgrammingAdventures #HackerNews #ngated
Parameterized types in C using the new tag compatibility rule

Structs in C++

PeerTube

In this post, I cover some fundamentals in Go! Learn about data composition with structs.

https://blog.mikesahari.com/posts/go-structs/

#golang #structs #techblog

Structs Fundamentals: From Basics to Advanced Usage

If you’ve been diving into Go programming (or “Golang” as the cool kids say), you’ve definitely encountered structs. They’re absolutely fundamental to how we organize and work with data in Go, and mastering them is crucial to writing clean, efficient Go code. I like to teach about structs, like other fundamentals, because of how powerful structs can be when used properly. Let’s break down everything you need to know about structs, from the very basics to some advanced patterns I’ve learned the hard way.

It's Go time!

Discover the power of structs in Go! Master how to define, create, and utilize structs to streamline your code. #GoLang #Programming #Structs

https://teguhteja.id/tutorial-structs-in-go-mastering-structs-comprehensive-guide/

Tutorial Structs in Go: A Comprehensive Guide

Tutorial Structs in Go: Learn how to define, create, and manage structs effectively in Go programming. Essential for efficient coding

teguhteja.id

I see that some one has brought up #structs on the internal #PHP mailing list.

Let me point y'all to my attempt: https://github.com/ellisgl/PHP-RFC-Struct-Data-Type

GitHub - ellisgl/PHP-RFC-Struct-Data-Type: [WIP] PHP RFC for 'struct' data type.

[WIP] PHP RFC for 'struct' data type. Contribute to ellisgl/PHP-RFC-Struct-Data-Type development by creating an account on GitHub.

GitHub

Sure, if by "declaration", you mean "instantiation".

#cpp #cplusplus #teaching #structs

#rust - #structs and #enums are the basis of what I'm trying to do I think, so....good direction! Unlike #ownership, this part actually makes sense for me.

Learning Rust Part 2 (Enum Basics, Structs and Methods)

https://diode.zone/videos/watch/e93e7f26-a9ef-4bb5-bdd4-4b542c2da00f

Learning Rust Part 2 (Enum Basics, Structs and Methods)

PeerTube
Had to remap individual led positions using #C #structs (my roommate's idea) to make custom light effects easier... #RGBlamp

The #Rust #programming #language does not allow us to put a #trait on multiple #structs at the same time. It forces us to repeat the implementation for each applicable struct,

That's a LOT of duplication, dear #rustlang.

Can't Rust inherit default functions from inherited traits?

Yes, yes it can:

pub trait Child : Parent {
fn do_something() -> T;
}

That child trait needs just 1 implementation.

But now both traits need implemented for each applicable struct...