#metaprogramming

[ follow ]
fromRealpython
1 month ago

Using Python's .__dict__ to Work With Attributes - Real Python

Python's .__dict__ attribute serves as a namespace for classes and instances, mapping attribute names to values, which is crucial for metaprogramming and debugging.
Python
fromHackernoon
2 months ago

C++ Metaprogramming: Compilation of Calculations, from Basic Techniques to Advanced Methods | HackerNoon

Compile-time calculations in C++ enhance program efficiency and safety, but increase compilation time and can complicate code readability.
Scala
fromRubyflow
3 months ago

Unlock the Power of Ruby Metaprogramming!

The Module#included callback allows developers to dynamically modify the behavior of classes or modules when they include a particular module, making it a powerful tool for adding functionality.
[ Load more ]