Modern C++ Techniques in UVW: Templates and Scoped Enums
UVW, a modern C++ wrapper around libuv, leverages several advanced language features to provide type safety, performance, and expressive APIs. Two such features—templates and scoped enumerations (enum class)—play critical roles in its design.
Templates for Type-Safe Resource Management
Consider how UVW creates handles:
auto tcp = loop.resource& ...
Posted on Thu, 11 Jun 2026 16:41:16 +0000 by arn_php
Kotlin Nested and Inner Classes, Anonymous Objects, and Enum Classes
Kotlin supports nesting classes within other classes. A nested class is declared directly enside another class and does not hold a reference to a instance of the outer class:
class Outer {
private val value = 1
class Nested {
fun getValue() = 2
}
}
val result = Outer.Nested().getValue() // Returns 2
When a nested class is ...
Posted on Sun, 10 May 2026 12:35:52 +0000 by alex_lana