#Enums
It's just too easy to overload None to mean multiple things. Write your own enums lol
November 17, 2026 at 10:06 PM
a lot of bools are better represented as two-value enums
November 18, 2026 at 1:50 AM
Agree but also disagree. Most people won't write their own enums, as evidenced by the extreme popularity of `either`
November 17, 2026 at 10:52 PM
We straight up have a rule in our custom linter that bans bools in function arguments and requires enums instead.
November 18, 2026 at 7:42 AM
If you have two categories of data types for a wire format:

- "atoms" (e.g. single items like bool, u32, f32)
- "composites" (e.g. enums, structs, arrays)

is the unit type (`()`), which is not serialized to the wire:

- An "atom" with zero wire size?
- A "composite" consisting of zero children?
November 18, 2026 at 5:56 PM
That's something that we were discussing in this other thread.

I think there are features that could be added to Rust that would allow for more easily reusing the machinery around `Option` and `Result` for custom enums.

But also, code duplication is not the end of the world.
bsky.app/profile/maxd... i think

pub type TimeoutOutcome = Option {
Ok(T) = Some(T),
Timeout = None,
};

would kick ass if it meant TimeoutOutcome has all the Option impls but was a discrete type and didn’t unify with Option like the keyword currently does
Overuse of `Option` (and, heaven-forbid, `Result`) is definitely a pet peeve of mine.

Here's a good example from Zed's Cloud codebase:

```
enum TimeoutOutcome<T> {
Ok(T),
Timeout,
}
```

So much clearer to have `TimeoutOutcome<T>` as a return type than `Option<T>`.
November 17, 2026 at 11:40 PM
📦 abetwothree/laravel-ts-publish v2.10.1

Create TypeScript declaration types from your PHP models, enums, and other cast classes

🔗 https://github.com/abetwothree/laravel-ts-publish
November 18, 2026 at 3:16 AM
📦 timezhero/enhanced-enums v2.0.0

Enhanced enums for Laravel

🔗 https://github.com/TimeZHero/laravel-enhanced-enums
November 14, 2026 at 2:12 PM
Enums with functions inside?! #zig
November 15, 2026 at 10:45 PM
🐥 Passing Maps and Enums with Rust NIFs in Elixir

#ElixirLang #rust
Passing Maps and Enums with Rust NIFs in Elixir
#ElixirLang #rust
www.yellowduck.be
November 12, 2026 at 6:05 PM
Is it possible to use the question mark operator with custom enums?
November 17, 2026 at 10:45 PM
Got custom data? You're no longer restricted to basic numeric types, bools, and strings in your actions.
You can use any type you create your own custom converter for, or for built in Unity types like Components or any Yarn Enums. They'll just work!
November 18, 2026 at 12:53 AM
Agreed!

It would be great if there was an easier way to have custom enums opt-in to behaviors of `Option` (like automatically implementing `.map`, etc.).

Like how in Haskell you would implement `Functor` for a custom type.
November 17, 2026 at 10:34 PM
Writing tiny un-try-able domain specific enums to remove Option<T> as a form of self love.
November 17, 2026 at 10:17 PM
Developers noted similar leaps happen whenever you hit genuinely foreign paradigms, whether that is Prolog, VHDL, or Lisp. Even within systems programming, people contrasted Rust's enums with Zig and Ada, where tagged unions and distinct enumerations are kept strictly separate.
November 17, 2026 at 3:00 PM
heh, thinking about form ui - if you have a two state option, should it be on/off (a checkbox) or "state one", "state two" (a select box)?

feels like a similar tradeoff to booleans vs named enums in TypeScript / Rust, etc.
November 16, 2026 at 5:55 PM
📢 New #updates · 15 Nov #11.1

· fonoster v0.61.0 — Enums exported and error messages improved
November 15, 2026 at 2:30 PM
PHP 8.6 lets enums define __debugInfo(), which controls what var_dump shows for an enum case. The article covers the RFC examples, a practical var_dump pattern, and what static analysis tools need to update.

https://shocm.me/posts/2026-11-11-php-86-debugable-enums-debuginfo/
PHP 8.6 Debugable Enums: Using __debugInfo() on Enum Cases
PHP 8.6 lets enums define __debugInfo(). See the RFC examples, a practical var_dump pattern, and what static analysis tools need to update.
shocm.me
November 14, 2026 at 5:09 PM
Yeap, 100% agree! Although some things don’t have to be part of the language. For example, go-sumtype gives you exhaustive checks for sealed interfaces (poorman’s union types 😁), and the exhaustive linter does the same for enums. But when it’s built into the language, that’s always best.
November 16, 2026 at 4:39 PM
📢 𝗜𝘀𝘀𝘂𝗲 𝟭𝟭𝟴 𝗶𝘀 𝗼𝘂𝘁!

This week's lineup:
🛠️ 𝑊ℎ𝑎𝑡'𝑠 𝑛𝑒𝑤 𝑖𝑛 𝑆𝑤𝑖𝑓𝑡: 𝑁𝑜𝑣𝑒𝑚𝑏𝑒𝑟 2026 𝐸𝑑𝑖𝑡𝑖𝑜𝑛
🔶 𝐶𝑜𝑑𝑎𝑏𝑙𝑒 𝑠𝑦𝑛𝑡ℎ𝑒𝑠𝑖𝑠 𝑓𝑜𝑟 𝑆𝑤𝑖𝑓𝑡 𝑒𝑛𝑢𝑚𝑠
📱 𝐹𝑖𝑛𝑎𝑙𝑙𝑦, 𝐴𝑝𝑝𝑙𝑒 𝐹𝑟𝑒𝑒𝑠 𝑢𝑠 𝑓𝑟𝑜𝑚 𝐷𝑜𝑚𝑎𝑖𝑛𝑠
Snapp iOS Weekly Issue 118
8 articles: What's new in Swift: November 2026 Edition, Codable synthesis for Swift enums, Finally, Apple Frees us from Domains, and 5 more
ios-newsletter.snappmobile.io
November 13, 2026 at 3:15 PM
PHP 8.6 lets enums define __debugInfo(), which controls what var_dump shows for an enum case. The article covers the RFC examples, a practical var_dump pattern, and what static analysis tools need to update.

https://shocm.me/posts/2026-11-11-php-86-debugable-enums-debuginfo/
November 14, 2026 at 5:09 PM
typescript has enums

but today i learned don't use them they're evil
November 14, 2026 at 1:47 AM
📦 silarhi/app-js-bundle v0.3.0

load_page Twig function, TypeScript enums and typed form shapes for Symfony — the PHP companion to @silarhi/app-js

🔗 https://github.com/silarhi/app-js-bundle
November 13, 2026 at 11:00 AM
📦 igne-agency/laravel-permissions v2.0.0

Permission names, lists and checks for the models, action classes and enums of a Laravel app, with or without spatie/laravel-permission.

🔗 https://github.com/IGNE-Agency/laravel-permissions
November 16, 2026 at 3:59 PM