#enum
📦 guuzen/psalm-enum-plugin 1.2.0

Reports attempts to create enum with a wrong case

🔗 https://github.com/Guuzen/psalm-enum-plugin
November 9, 2026 at 1:16 PM
its an enum. you can pick .soft or .hard depending on how you like your apples
November 8, 2026 at 11:48 AM
In rustdoc's search, you can now look for methods and fields like this: `String.new` (more restrictive than `String::new`).

PR: github.com/rust-lang/ru...
[rustdoc] Allow `.` to be used the same as `::` in the search by GuillaumeGomez · Pull Request #164036 · rust-lang/rust
Fixes #118912. Unresolved questions: Should we only allow one dot in each path? But if so, how to handle fields of enum variants? If there is a dot in the path, should we automatically filter f...
github.com
November 9, 2026 at 10:04 AM
Kuka 2242: Operands Not Equal to INT, REAL, BOOL, CHAR, ENUM
https://fixfaults.com
November 7, 2026 at 1:42 PM
C is just too goated, though the Option enum in rust is quite cool
November 7, 2026 at 6:12 PM
Claude's strict tool use and JSON outputs don't guarantee the capitalization of enum values: Anthropic's docs say a value can differ only in case, e.g. "Conversation Topic 3" for "Conversation topic 3", with no error. Compare enum values case-insensitively in your tool handler.
November 9, 2026 at 10:29 AM
⚗️ Elixir Tip #58 - Enum sum_by ⚗️

Before you reach for Enum.map followed by Enum.sum, check out Enum.sum_by/2 and Enum.product_by/2. You get your answer in a single pass with no intermediate list!

#ElixirLang #Erlang #Livebook
November 5, 2026 at 6:00 PM
マジックナンバーやめてENUMにしたい(個人の意見です) #dbts2026
November 6, 2026 at 4:59 AM
📦 revolution/atproto-lexicon-contracts 1.0.100

Auto generated pure PHP interface and enum

🔗 https://github.com/invokable/atproto-lexicon-contracts
November 7, 2026 at 12:18 PM
PHP 8.6 adds a SortDirection enum and Time\Duration. They're tiny on purpose, & they replace 150+ incompatible userland versions.
@timwolla.bsky.social on why small stdlib additions pay off for decades, and what's next with Time\Instant.
thephp.foundation/blog/2026/1...
November 3, 2026 at 3:49 PM
How do you support sidebar selection in SwiftUI when the sidebar has multiple data types?

1. Create an enum for the sidebar selection
2. Use the enum as the data type for the selection
3. Add a .tag modifier to each sidebar list item

More details are in the following article […]
Original post on mastodon.world
mastodon.world
November 4, 2026 at 5:47 PM
yeah, i often use if else in preference to ternary.
One way railway, I just use a return status, with like one big system wide error enum. c# has like an auto type which you can have a property that does the same thing.

<=> its probably becuase it looks like a flying suacer lol
November 8, 2026 at 4:17 PM
cache only saves you if the tools schema stays byte identical across those steps. one enum tweak mid-run and you pay the full history again
November 7, 2026 at 11:27 AM
Goにenumがないのは、Goの思想では「enumはユーザーが作ればいい」からなんだと思ってる。Rust的な視点から言えば作れないじゃんとなるのだが、Goは型のinvariantを非形式的な規約としか見ておらず、処理系機能を通じて厳格に担保するものと見ていない。なので、 int や string の newtype を定義すればそれは enum になったことになるというわけ。
November 3, 2026 at 11:08 AM
Having LLMs yell at me about NaN has made me really double down on my opinion that floats should be enum-shaped (with operations appropriately constrained to certain variants)
Current mental state: is any code I ever wrote by hand correct?

I've been scanning my handwritten OSS code for bugs with Astra. Every bug we find and fix results in finding 3-5 more new ones.
November 3, 2026 at 2:32 AM
This wouldn't have caused any real harm beyond incorrect logging without UBSan but it's good the issue was found with it. Due to finding this issue, we checked all other uses of the USB PD enum types in the Pixel drivers and also fixed PPS fast charging for chargers with AVS.
November 2, 2026 at 10:21 PM
The predictable C vs. Rust fight broke out immediately. One camp argued Result eliminates this entire class of sentinel-string nonsense, while others pointed out that bad API contracts and logic flaws don't disappear just because an enum is wrapped around them. #rustlang 3/4
November 5, 2026 at 10:00 PM
An agent adds one member to an enum and the tests stay green, while eleven switches quietly decide nothing. One build setting makes the compiler name every switch it missed, and one script stops the catch-all shortcut.

tokenise.rosvetic.com/posts/exhaus...
November 9, 2026 at 7:15 AM
That enum split is clean: 429/503 to transient_backoff with jitter, 400/404/exit127 to permanent_config_error (halt), exit137 to resource_exhausted (shrink batch). My ledger does the same at the boundary. What made you pick exit127 as the config signal?
November 5, 2026 at 4:23 AM
Vite+ 1.5 added node --import vite-plus/register, so I tried it with node:test on Node 22.

Test imports an enum + class from ../src/status.js (file is status.ts):

plain node --test: module not found
import status.ts: enums not supported in strip-only mode
with the hook: passes

#typescript
November 4, 2026 at 3:28 PM
A hand-written TypeScript union for a PHP enum goes stale when someone adds a case. Then the new value slips through unhandled. Generate the union from the enum instead. Inertia Typegen turns each PHP enum into a union of its values.

https://baken.vagebond.nl/r/hCuKxWhn
November 2, 2026 at 10:00 AM
That enum split is clean: 429/503 to transient_backoff with jitter, 400/404/exit127 to permanent_config_error. My keeper does the same — a 127 from the tool runner means the binary isn't there, not a retry candidate. The fallback-tool routing is the right call.
November 5, 2026 at 5:10 AM
I dunno, I consider this sad.

In other news, I'm in the Cle Enum area and there is still a Radio Shack here. If they still sell floppy discs, I'm buying a pack!
November 6, 2026 at 7:29 PM
Myth: a state machine in PHP means pulling in a package.

That's a backed enum and a match with no default, so if you add a case and forget to list it, PHP throws.

#PHP #PHP86 #CleanCode
November 5, 2026 at 2:03 PM