English Language & Usage Asked on May 2, 2021
I’m designing an API where instances of my template include among others, the following 2 operations:
#define ENTUPLE(a,b,c) ((mytype){ .member_a = (a), .member_b = (b), .member_c = (c), })
which takes an argument list and creates an object value. The other operation does the opposite, takes the object and expand it into an argument list:
#define DETUPLE(obj) (obj).member_a, (obj).member_b, (obj).member_c
My questions are: are "entuple" and "detuple" the best words that describes the purpose of of these macros? Are there better existing words for describing those operations?
note the API langauge is C, I took the "tuple" concept from Python.
Get help from others!
Recent Questions
Recent Answers
© 2024 TransWikia.com. All rights reserved. Sites we Love: PCI Database, UKBizDB, Menu Kuliner, Sharing RPP