Account Options

  1. Sign in
The old Google Groups will be going away soon, but your browser is incompatible with the new version.
Google Groups Home
« Groups Home
accessing fields of a structure via a channel
There are currently too many topics in this group that display first. To make this topic appear first, remove this option from another topic.
There was an error processing your request. Please try again.
flag
  1 message - Collapse all  -  Translate all to Translated (View all originals)
The group you are posting to is a Usenet group. Messages posted to this group will make your email address visible to anyone on the Internet.
Your reply message has not been sent.
Your post was successful
 
From:
To:
Cc:
Followup To:
Add Cc | Add Followup-to | Edit Subject
Subject:
Validation:
For verification purposes please type the characters you see in the picture below or the numbers you hear by clicking the accessibility icon. Listen and type the numbers you hear
 
Joel Reymont  
View profile  
 More options Sep 7 2012, 8:14 am
From: Joel Reymont <joe...@gmail.com>
Date: Fri, 7 Sep 2012 05:14:14 -0700 (PDT)
Local: Fri, Sep 7 2012 8:14 am
Subject: accessing fields of a structure via a channel
Folks,

Is there a way to do this better?

https://gist.github.com/37dada7af636e2db000d

I'm concerned about field access in particular, e.g. the Symbol()
method.

The idea is that the instrument's goroutine sits there and updates
itself with prices, etc. while taking requests to fetch the same.

The reason for SetHook is because i may have super-instruments that
may want to receive other kinds of market data and process that too.
There's no inheritance in go thus the hook.

For example, an Options instrument will have additional fields to be
updated while embedding the instrument within itself. So it will let
embedded instrument update itself and then act on the event that
instrument skipped to update its own fields.

    Thanks, Joel


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
End of messages
« Back to Discussions « Newer topic     Older topic »