Operator Overloading in Scheme and racket | INFJ Forum

Operator Overloading in Scheme and racket

Discussion in 'Computer Science' started by endo, Feb 13, 2014.

Share This Page

More threads by endo
  1. endo

    endo One

    Joined:
    Feb 13, 2014
    Threads:
    1
    Messages:
    1
    Likes Received:
    0
    Trophy Points:
    0
    MBTI:
    fbzgdnsfghb
    Hello. I am having some trouble here, and hopefully you guys can help.

    Basically, what I am trying to do is overload the + sign in racket so that it will add two vectors instead of two numbers. I know this works in scheme, so I was told I needed to use module* to do it in racket.

    Here is what I have so far:
    But it doesn't seem to do anything at all. If anyone knows anything about this I would be very appreciative.

    Thank you.
     
    #1 endo, Feb 13, 2014
    Last edited: Feb 13, 2014
  2. sprinkles

    sprinkles Well-known member

    Joined:
    Jan 13, 2013
    Threads:
    70
    Messages:
    9,577
    Likes Received:
    7,211
    Trophy Points:
    1,011
    MBTI:
    xxxx
    Bleh. People who use LISP say it's not hard to understand. If that's the case then why are you here with such a simple problem? o.o Personally I don't get LISP. Does that mean I'm dumb? But it's supposed to be easy to understand and be the most powerful language. Shouldn't that mean that even I can get it?

    I'd love to help and I'm really curious about this problem, and I understand what you're trying to do, I just don't understand LISP (Scheme/Racket)

    It hurts my brain.
     
  3. rawr

    rawr ¯\_(ツ)_/¯

    Joined:
    Jan 17, 2010
    Threads:
    123
    Messages:
    7,306
    Featured Threads:
    1
    Likes Received:
    2,369
    Trophy Points:
    867
    Gender:
    Male
    Location:
    Earth
    MBTI:
    IxTP
    Enneagram:
    human
    It's kind of a poor forum to ask this kind of question.

    Try StackExchange or something.
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
Loading...

Share This Page