Skip to content

Update claudtroller.c3 - #2

Open
lerno wants to merge 1 commit into
bradcypert:mainfrom
lerno:patch-1
Open

Update claudtroller.c3#2
lerno wants to merge 1 commit into
bradcypert:mainfrom
lerno:patch-1

Conversation

@lerno

@lerno lerno commented Jul 27, 2026

Copy link
Copy Markdown

I am not really suggesting these changes, I just wanted to demonstrate how typedef and constdef could be leverages. I also tend to use switch over else-if in C3, because it solves the same problem. Just close this PR when you've read it. Your code looks perfectly fine to me, this was just to show how you could make some things typesafe for a larger project using constdef and typedef. It's absolutely overkill for this.

Demonstrating typedef and constdef
@bradcypert

Copy link
Copy Markdown
Owner

Ah, thank you! I like those suggestions a lot! The extra type definition definitely provides clarity!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants