In Tangent, I want to have an operator that takes a method group and a method signature and returns the method from the group that matches the signature (or null).
I've been using 'select' for the operation, but that seems not clear enough and too conflicting with what people expect select to do. I would prefer a word or phrase operator rather than a symbol, but could be convinced otherwise. What should it be?
What name/symbol to use for this operator?
Interrobang.
In all seriousness: "matchsignature" or just "match" if you're into the whole brevity thing.
In all seriousness: "matchsignature" or just "match" if you're into the whole brevity thing.
What's the syntax for your select operator at the moment?
How about an infix operator: <methodGroup> selectSignature <signature>
Or the other way around: <signature> fromMethodGroup <methodGroup>
How about an infix operator: <methodGroup> selectSignature <signature>
Or the other way around: <signature> fromMethodGroup <methodGroup>
It is currently an infix operator:
<methodGroup> select <signature>
select <signature> from <method group>
was considered, but has the same sort of conflict issues; the language allows for user defined operators so I don't particularly want to muddle what will almost certainly be used for a SQL-like domain specific language.
<methodGroup> select <signature>
select <signature> from <method group>
was considered, but has the same sort of conflict issues; the language allows for user defined operators so I don't particularly want to muddle what will almost certainly be used for a SQL-like domain specific language.
select <signature> from <method group>
Could tweak it to:
method <signature> from <method group>
from <method group> get <signature>? (or: get <signature> from <method group>)
Although since you talked about SQL stuff, I don't know if you want to use the word "from". So maybe a c-c-c-c-combo:
<signature> getfrom <method group>
Or maybe the word pick:
<method group> pick <signature>
Although since you talked about SQL stuff, I don't know if you want to use the word "from". So maybe a c-c-c-c-combo:
<signature> getfrom <method group>
Or maybe the word pick:
<method group> pick <signature>
This topic is closed to new replies.
Advertisement
Popular Topics
Advertisement