Hello Dirk,

 

Thanx for your reply. I addressed the question  to you because you’re the one mostly responding lately so I guessed Christian is on Holliday J

My conclusion could indeed be incorrect, it probably is. Java is a good reference I think, it is pretty flexible. So that’s no option.

I want to make something generic that even in the underlying Java isn’t generic. Maybe not such a good idea after all.

 

Muchly appreciating your answer,

Rob

 

PS. I get your point concerning x-query talk.

Van: Dirk Kirsten [mailto:dk@basex.org]
Verzonden: donderdag 23 juli 2015 19:10
Aan: Rob Stapper
CC: BaseX
Onderwerp: Re: [basex-talk] annotations in function-declarations

 

Hello Rob,

umm, I don't know why you mention me as I don't have any specific knowledge about annotations. But as I read it now I try to answer it anyways, but it sure would be nice if Christian would answer this as well, having much more knowledge about the topic than I ever will.

I don't think your proposal is feasible. With using a variable value one would not be able to create the function at compile time (as the value could be different for different calls). Also, I think your conclusion in your example with the inline function is incorrect, as the function can still be created during compile time. For your proposal to work the function would have to be created during run time and I don't think this is a good idea.

Also, I didn't complete understand your use case and why you can't simply use some function argument for this.

I would also like to add that if you e.g., take a look at java annotations you will also see that it is only passible to use constant values as variables to be able to decide at compile time. I am not aware of any language that does allow this.

By the way, in general it is a good idea to make us aware of dicussions that occur on the x-query talk ML and you specificly want us to get active. Personally, I don't read the ML very much anymore, as it was flooded with the same meta-discussion all the time recently and I got fed up quite a bit.

Cheers,
Dirk

On 07/23/2015 05:41 PM, Rob Stapper wrote:

Hi, I guess, Dirk,

 

See the attached mail-threat, probably already noticed on talk@xquery.

 

Is it possible that you do a little feasibility-study on the basex-implementation for my request?

 

Thanx in advance,

Rob Stapper

 


Afbeelding verwijderd door afzender. Avast logo

Dit e-mailbericht is gecontroleerd op virussen met Avast antivirussoftware.
www.avast.com

 



-- 
Dirk Kirsten, BaseX GmbH, http://basexgmbh.de
|-- Firmensitz: Blarerstrasse 56, 78462 Konstanz
|-- Registergericht Freiburg, HRB: 708285, Geschäftsführer:
|   Dr. Christian Grün, Dr. Alexander Holupirek, Michael Seiferle
`-- Phone: 0049 7531 28 28 676, Fax: 0049 7531 20 05 22



Avast logo

Dit e-mailbericht is gecontroleerd op virussen met Avast antivirussoftware.
www.avast.com