[plt-scheme] defstruct and class?

From: Circular Function (circularfunc at yahoo.se)
Date: Sat Jul 26 07:30:04 EDT 2008

I am playing with the Netflix recommendation system which involves 17K+files and massive amounts of data.

I want to represent (and save) the parsed data in various forms and Python like classes would be perfect.

Should I use defstruct or classes? classes seem complicated and not exactly as classes in other languages.

I want to represent Customer as:

class Customer:
    def __init__(self, idnumber):
        self.idnbr = idnumber
        self.reviews = []

    def addReview(self, review):
        self.reviews.append(review)

    def hasReview(movieId):
        doSomething
    




      __________________________________________________________
Går det långsamt? Skaffa dig en snabbare bredbandsuppkoppling. 
Sök och jämför priser hos Kelkoo.
http://www.kelkoo.se/c-100015813-bredband.html?partnerId=96914325
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.racket-lang.org/users/archive/attachments/20080726/ac1abbc8/attachment.html>

Posted on the users mailing list.