logoalt Hacker News

spacechild1 • today at 2:19 PM • 0 replies • view on HN

You can go further and even register your actual C++ types (e.g. with sol2), which removes lots of extra parsing steps:

    pos = Point(2.5, 8.9)
    size = Size(4, 5)
    opacity = 0.5
    color = Color(0.5, 0.2, 0.1)