Jump to content
  • Advertisement
Sign in to follow this  
Telastyn

What name/symbol to use for this operator?

This topic is 2479 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

Recommended Posts

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?

Share this post


Link to post
Share on other sites
Advertisement
Interrobang.


In all seriousness: "matchsignature" or just "match" if you're into the whole brevity thing.

Share this post


Link to post
Share on other sites
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>

Share this post


Link to post
Share on other sites
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.

Share this post


Link to post
Share on other sites

select <signature> from <method group>

Could tweak it to:
method <signature> from <method group>

Share this post


Link to post
Share on other sites
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>

Share this post


Link to post
Share on other sites
Sign in to follow this  

  • Advertisement
×

Important Information

By using GameDev.net, you agree to our community Guidelines, Terms of Use, and Privacy Policy.

GameDev.net is your game development community. Create an account for your GameDev Portfolio and participate in the largest developer community in the games industry.

Sign me up!