Agree with Roger, option B sounds like the preferable approach. Would
consider making this an option so people not interested in this type of
information would not have to incur any additional overhead for something
not in use

-Jake

On Fri, Oct 2, 2015 at 5:50 PM, Roger Meier <ro...@bufferoverflow.ch> wrote:

> Hi Jens
>
> Quoting Jens Geyer <jensge...@hotmail.com>:
>
> Hi all,
>>
>> a frequent question is how a (typically server-side) event handler could
>> find out more about his counterpart, say the IP address or the like. The
>> common suggestion is that this is highly depending on the transport (which
>> is true) and therefore doomed to fail if anything changes at that end,
>> hence one /may/ use a cast but ... you know.
>>
>> Here’s the question: Why can’t we just come up with some standard way how
>> these variable and context-sensitive information can be handed over to the
>> event handler(s), either implicitly by default, or alternatively on
>> request? Two approaches that immediately come to my mind are these:
>>
>> a) a simple key/value map (both strings?), where key can be anything
>> b) some predefined structure that can hold all kind of information
>> possible with existing transports
>>
>> While (a) is easily extendable, (b) is probably more performant.
>>
>> Thoughts?
>>
>
> I'm in favour of b) as it seems to be inline with our vision (performance
> + interoperability)
>
> I guess a) will fragment the behavior and usage within the languages too
> much
>
> best!
> -roger
>
>
>

Reply via email to