News for hackers. Stuff that matters.
Re:Circle: C++ Automation Language by bialpio on Saturday October 16, 2021 @03:38PM (#28890765)
Seems that it could be used to solve an old-time classic: generate a mapping from an enum value to its string representation. Another use case that comes to my mind is maybe automating test case generation. Occasionally I was running into situations where I thought code generation could be useful, but not sure what could be a "killer app" equivalent for this feature.

Related topic: standardizing reflection in c++. https://youtu.be/ARxj3dfF_h0 https://en.cppreference.com/w/cpp/keyword/reflexpr

Re:Circle: C++ Automation Language by seanbax on Saturday October 16, 2021 @06:53PM (#28892294)
Enum to string is a one-line expression in Circle: https://godbolt.org/z/93f5o77zv

Circle has dozens of special traits for accessing useful stuff about types, packs, etc. Don't need to overengineer such a simple thing.

Re:Circle: C++ Automation Language by malkia on Saturday October 16, 2021 @08:11PM (#28892773)
Re:Circle: C++ Automation Language by pisssip on Sunday October 17, 2021 @06:00AM (#28895261)
What’s wrong with an array
Re:Circle: C++ Automation Language by ggrrhh_ta on Saturday October 16, 2021 @04:41PM (#28891295)
that would be great :-)