ProgrammingThis forum is for all programming questions.
The question does not have to be directly related to Linux and any language is fair game.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
Wow, free lectures! I guess I don't need to pay tuition anymore But are these videos on Scheme or Lisp? I don't see any mention to either, except that the first video is an introduction to Lisp...
Does Scheme suppor procedural programming? I mean, not using functions or recursion but something like (thinking in C++)
Yes, it does support procedural programming. The C++ code you gave does have functions (well, methods anyway).
Quote:
you see I have to keep using function like expressions..... why not just define variables, etc etc?
Because there are many advantages to a functional style, but you can define variables if you like.
Quote:
the only thing close to variable assignment in scheme (that i learned) was (let ....) which you might wanna look into, but it seems to half do the job. I don't even remember too many specifics since I haven't written anything in scheme for a year :-x
Let does half the job, and the set! function does the other half. It's really very easy to do imperative/procedural programming in Scheme, although I'm not sure why anyone would want to, unless they just want to write C++ code in Scheme.
the thing about trying to transport procedural into scheme is that I've only used that style so when I see a problem that has to be solved my instinct drive me that way... I find it quite tricky to change into another perspective (recursion and functions) but again, there's got to be a way
Well, I believe that, at the time, LISP = scheme . These guys are pretty much the legends who actually invented the whole stuff (they worked in the AI lab at MIT, Stallman too, for the record)... the syntax is scheme (look at the function definitions in first lesson), and the simplicity.. Yet, the course is A LOT about good (and crazy, abstract) software development in general - learning a language, or using whichever one IMHO is not the "real" CS knowledge...
Well there's good 20 hours of lectures (you need a good internet connection to download that), and if you want to be serious, you'd probably do the assignments from the book as well. The course will definitely make you appreciate functional programming and this whole 'abstract thing'... I heard that this is (used to be?) the only CS (EE) freshman introductory course @ MIT where you actually learned to program, the rest (four years) was theory - as I believe it should be.
hehehe now I'm starting to get scared hehe I'll try my best.... you wouldn't happen to know another course like that but now about 3D modeling or openGL would you??
I'm a huge fan of scheme as well; I'd like to point out a wonderful introduction to the language, an entire MIT course available on the web (together with the book) in form of video lectures: The Structure and Interpretation of Computer programs: http://swiss.csail.mit.edu/classes/6...sman-lectures/
Can you help me on this, I can't get it right
Develop the function My-Grade-Is-B. which returns true for any grade between 80 - 89 and false otherwise
(define (My-Grade-Is-B G ))
(cond
[ (and ( > = 80 G ) ( < = 89 G )) ]
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.