update std.lang enums to conform to snake case convention #35735
Labels
No labels
abi/f32
abi/ilp32
abi/sf
accepted
arch/21k
arch/6502
arch/aarch64
arch/alpha
arch/amdgcn
arch/arc
arch/arc32
arch/arc64
arch/arm
arch/avr
arch/bfin
arch/bpf
arch/colossus
arch/cris
arch/csky
arch/dlx
arch/epiphany
arch/fr30
arch/frv
arch/hexagon
arch/hppa
arch/hppa64
arch/ia64
arch/kalimba
arch/kvx
arch/lanai
arch/lm32
arch/loongarch32
arch/loongarch64
arch/m32r
arch/m68k
arch/m88k
arch/mcore
arch/microblaze
arch/mips
arch/mips64
arch/mmix
arch/moxie
arch/mrisc32
arch/msp430
arch/nds32
arch/ns32k
arch/nvptx
arch/or1k
arch/powerpc
arch/powerpc64
arch/propeller
arch/riscv32
arch/riscv64
arch/rl78
arch/rx
arch/s390x
arch/sh
arch/sparc
arch/sparc64
arch/spirv
arch/spu
arch/tricore
arch/v850
arch/vax
arch/vc4
arch/ve
arch/wasm
arch/x86
arch/x86_64
arch/xcore
arch/xtensa
autodoc
backend/c
backend/llvm
backend/self-hosted
binutils
breaking
build system
debug info
docs
error message
frontend
fuzzing
incremental
lib/c
lib/compiler-rt
lib/cxx
lib/std
lib/tsan
lib/ubsan-rt
lib/unwind
linking
miscompilation
os/android
os/dragonfly
os/driverkit
os/emscripten
os/freebsd
os/fuchsia
os/haiku
os/hurd
os/illumos
os/ios
os/linux
os/maccatalyst
os/macos
os/managarm
os/netbsd
os/ohos
os/openbsd
os/plan9
os/redox
os/rtems
os/serenity
os/tvos
os/uefi
os/visionos
os/wasi
os/watchos
os/windows
proposal
release notes
testing
zig cc
zig fmt
zig reduce
bounty
bug
contributor-friendly
downstream
enhancement
infra
optimization
question
regression
upstream
use case
No assignees
4 participants
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
ziglang/zig#35735
Loading…
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Migrated from https://github.com/ziglang/zig/issues/2101
Release mode enumeration isn't snake-cased (?)to Long URLs or links cause bad width on phone viewLong URLs or links cause bad width on phone viewto Optimize mode enumerators aren't snake-cased (?)They might refer to the cli options, in which case it could make sense to not use snake-case:
https://ziglang.org/documentation/0.16.0/#toc-Names
A good question could be whether or not it makes sense for the cli args to be TitleCase in the first place.
Maybe they should match the enum and thus be snake_case.
I mean there's also https://ziglang.org/documentation/0.16.0/std/#std.Build.ReleaseMode, which is similar excluding the debug mode.
Isn't it PascalCase? Title Case as I'm aware is, for typesetting and reserved for titles, with spaces.
that used to be the preferred casing for enums, it's just a very breaking change to rename these specifically so it hasn't been done yet.
I thought about that too, but aren't breaking changes kinda expected/encouraged per release? As well, it's a bit of an inconsistency, I guess.
even mechanical renames cause upgrade friction across the ecosystem. I'm sure it'll get done before 1.0 :)
Thanks, just so you don't think I'm spamming, I had another issue/bug with long URLs breaking view width (on generated web docs), do you mind if I file it?
of course, just closed this because it's not immediately actionable.
Optimize mode enumerators aren't snake-cased (?)to update std.lang enums to conform to snake case conventionThis needs to be done very carefully because it's breaking to a problematic degree.
Migrated https://github.com/ziglang/zig/issues/2101 to here
M'lord Andrew