C-Python-like-Decorators
How to write decorator functions in modern C++ (by TheMaverickProgrammer)
defer.hpp
Go's defer implementation in C++17 (by BlackMATov)
C-Python-like-Decorators | defer.hpp | |
---|---|---|
2 | 1 | |
157 | 6 | |
- | - | |
1.8 | 1.7 | |
over 3 years ago | about 1 year ago | |
C++ | C++ | |
- | MIT License |
The number of mentions indicates the total number of mentions that we've tracked plus the number of user suggested alternatives.
Stars - the number of stars that a project has on GitHub. Growth - month over month growth in stars.
Activity is a relative number indicating how actively a project is being developed. Recent commits have higher weight than older ones.
For example, an activity of 9.0 indicates that a project is amongst the top 10% of the most actively developed projects that we are tracking.
Stars - the number of stars that a project has on GitHub. Growth - month over month growth in stars.
Activity is a relative number indicating how actively a project is being developed. Recent commits have higher weight than older ones.
For example, an activity of 9.0 indicates that a project is amongst the top 10% of the most actively developed projects that we are tracking.
C-Python-like-Decorators
Posts with mentions or reviews of C-Python-like-Decorators.
We have used some of these posts to build our list of alternatives
and similar projects. The last one was on 2022-01-18.
-
Golang-like defer operation in C++
When I learn a new programming language, I find little gems in them that I really wish C++ had. I've made a write-up before on making Python-like function decorators in modern C++ with no macro magic, but today I have been inspired by the Go programming language's defer keyword.
-
Are Metaclasses still coming to C++?
For example you could do a poor man's decorator by wrapping functions in C++: https://github.com/TheMaverickProgrammer/C-Python-like-Decorators
defer.hpp
Posts with mentions or reviews of defer.hpp.
We have used some of these posts to build our list of alternatives
and similar projects. The last one was on 2022-01-18.
-
Golang-like defer operation in C++
https://github.com/BlackMATov/defer.hpp Here is my variant of the defer implementation :-)
What are some alternatives?
When comparing C-Python-like-Decorators and defer.hpp you can also consider the following projects:
GSL - Guidelines Support Library
C-Golang-like-Defer - Cursed defer() method in C++ achieves similar results as Go's defer keyword.
papers - ISO/IEC JTC1 SC22 WG21 paper scheduling and management