Menu

#Struct

23 posts

Feed·
20 of 23 posts
Decompiling allows ref struct: the whole feature is one metadata bit, and dropping it silently narrows your contract
📰
0Read More

Decompiling allows ref struct: the whole feature is one metadata bit, and dropping it silently narrows your contract

DEV Community: dotnet·Zero Heartbeat·1 day ago
#tPyWPyjc
#devtodotnet#devto#dev#struct#constraint

The C# 13 allows ref struct anti-constraint produces no method-body IL. It lives entirely in one GenericParameterAttributes bit (AllowByRefLike, 0x20) on a generic parameter — see how Glass.NET reads it back.

15s
My Struct Key Boxed Itself Two Million Times
📰
0Read More

My Struct Key Boxed Itself Two Million Times

DEV Community: dotnet·Sukhpinder Singh·15 days ago
#4I0cP0ve
#devtodotnet#devto#dev#struct#fastkey

A dictionary lookup shouldn't allocate, so why was mine showing up in the profiler? The culprit was a struct key missing one interface, boxing itself on every call.

15s
Go Struct Copying and Pointer Semantics Cause Unexpected `true false` Output for Java/Rust Developers
📰
0Read More

Go Struct Copying and Pointer Semantics Cause Unexpected `true false` Output for Java/Rust Developers

DEV Community: go·Viktor Logvinov·17 days ago
#K6RCx8WY
#devtogo#devto#dev#struct#self

Introduction Developers transitioning from Java or Rust to Go often encounter puzzling...

15s
Unix GC Remastered – Moe's VR blog
🖼️
41Read More

Unix GC Remastered – Moe's VR blog

Hacker News·5 months ago
#HBtTdcoc
#mohandacherir#define#include#vertex#struct

A walkthrough of the rewritten AF_UNIX garbage collector, the CVE-2025-40214 scc_index uninitialised-field bug, and two reproducers.

15s
Golang Design Patterns: Creational Patterns
🖼️
0Read More

Golang Design Patterns: Creational Patterns

DEV Community: go·Cem AKAN·6 months ago
#AOep0xTM
#dev#return#struct#pizza#func

Hello, Go enthusiasts. Welcome to the first installment of our deep dive into Golang Design...

15s
Golang Design Patterns: Structural Patterns.
🖼️
0Read More

Golang Design Patterns: Structural Patterns.

DEV Community: go·Cem AKAN·6 months ago
#KyZ7XkaN
#dev#func#type#string#struct

Welcome back, Gophers ❤ In the first part of this series, we mastered the art of creation learning...

15s
Golang Design Patterns: Behavioral Patterns
🖼️
0Read More

Golang Design Patterns: Behavioral Patterns

DEV Community: go·Cem AKAN·6 months ago
#znmgOnoa
#dev#func#type#struct#pattern

Welcome back, Gophers ❤. If you’ve followed along from our previous dives, you know that building a...

15s
0Read More

Should I use structs with URL-encoded form requests?

Reddit r/golang·u/161ForAChange·6 months ago
#qLlN1LAI
#structs#form#struct#create#photo

I am currently working on an API client for Splunk which takes x-www-form-urlencoded data. I like having the request data as structs, because it feels cleaner and can then be easily marshaled to JSON.…

15s
Pointer or Value Receiver in Go? The 3 Cases That Settle the Argument
🖼️
0Read More

Pointer or Value Receiver in Go? The 3 Cases That Settle the Argument

DEV Community·Gabriel Anhaia·7 months ago
#VkjExw5j
#rule#go#programming#beginners#receiver

Three rules decide pointer vs value receivers in Go: mutation, embedded sync primitives, and size. Everything else is taste, and taste loses.

15s
PHPUnit Mocking Made You Lazy. Go Will Force You to Design
🖼️
0Read More

PHPUnit Mocking Made You Lazy. Go Will Force You to Design

DEV Community·Gabriel Anhaia·7 months ago
#zJVErbvI
#go#php#interface#test#user

PHP can mock anything. Go cannot mock a struct. The constraint is the architecture lesson a PHP dev moving to Go has to confront.

15s