Skip to content

ci,examples: add a very minimal examples/clicks.v (490 bytes), fix the failing CI jobs#47

Merged
mike-ward merged 7 commits intovlang:mainfrom
spytheman:main
Feb 14, 2026
Merged

ci,examples: add a very minimal examples/clicks.v (490 bytes), fix the failing CI jobs#47
mike-ward merged 7 commits intovlang:mainfrom
spytheman:main

Conversation

@spytheman
Copy link
Member

No description provided.

@spytheman spytheman changed the title examples: add a very minimal examples/clicks.v (490 bytes) ci,examples: add a very minimal examples/clicks.v (490 bytes), fix the failing CI jobs Feb 14, 2026
@mike-ward mike-ward merged commit 3ddaa48 into vlang:main Feb 14, 2026
1 of 4 checks passed
@mike-ward
Copy link
Collaborator

Thanks for fixing the CI.

What's the motivation for the clicks example?

@spytheman
Copy link
Member Author

What's the motivation for the clicks example?

To have the smallest possible example, that is then easy to modify by adding stuff to it, from the snippets shown by the showcase, instead of trimming/deleting code from the bigger existing examples.

@spytheman
Copy link
Member Author

It also shows how to use @[has_globals] and keep the state in a global variable, without using closures etc.

Even thought it is not recommended for more complex applications, in many cases, it is the easiest/fastest approach for prototyping stuff in my experience.

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