Can you add some syntactic sugar?
One of the things that I find annoying at ECL is when I need to use a DATASET of primitives, such as
DATASET(STRING)
It seems to me that it should be easy to make the compiler accept that and easily generate the right code underneath:
like
STRINC_REC = {
STRING _s;
};
and automatically convert DATASET(STRING) to DATASET(STRING_REC)
DATASET(STRING)
It seems to me that it should be easy to make the compiler accept that and easily generate the right code underneath:
like
STRINC_REC = {
STRING _s;
};
and automatically convert DATASET(STRING) to DATASET(STRING_REC)
- nvasil
- Community Advisory Board Member
- Posts: 105
- Joined: Mon Oct 17, 2011 6:48 pm
Can you post a larger piece of example code so we can see exactly what you're doing within its context?One of the things that I find annoying at ECL is when I need to use a DATASET of primitives, such as
Thanks,
Richard
- rtaylor
- Community Advisory Board Member
- Posts: 1619
- Joined: Wed Oct 26, 2011 7:40 pm
Nothing special.Quite often you just need an array of strings or integers and you always have to wrap them in DATASETS
I would have liked to have DATASET(STRING) or DATASET(INTEGER)
I would have liked to have DATASET(STRING) or DATASET(INTEGER)
- nvasil
- Community Advisory Board Member
- Posts: 105
- Joined: Mon Oct 17, 2011 6:48 pm
If it were common practice, then I would probably have the same complaint, but I don't, so...Nothing special.
I have not found this to be the case. When I need an array (a set, in ECL terms) I simply define a set of strings or integers or whatever.Quite often you just need an array of strings or integers and you always have to wrap them in DATASETS
I have no idea what it is you're trying to accomplish, which is precisely why I asked for a code example showing exactly what you are doing.I would have liked to have DATASET(STRING) or DATASET(INTEGER)
IOW, right now I have no idea what syntax requirements you are complaining about. If you will please expand on your issue and show me what you are referring to, then communication will have been achieved.

Please show me the kind of code you are writing, then perhaps I can show you an alternative.
Richard
- rtaylor
- Community Advisory Board Member
- Posts: 1619
- Joined: Wed Oct 26, 2011 7:40 pm
4 posts
• Page 1 of 1
Who is online
Users browsing this forum: No registered users and 1 guest