GithubHelp home page GithubHelp logo

Comments (8)

nobody-famous avatar nobody-famous commented on July 19, 2024

Can you grab the last emacs-rex command? I can't seem to recreate the disconnect. I used the standard equivalent of filter, which is remove-if-not, and it worked fine.

Funcall is for explicitly calling a lambda, like doing callbacks in JS or Python. Homoiconicity refers to the code being lists, so you can use the list functions to create new code. That's what macros do.

It allows you to modify the syntax if you want. The loop macro is an example of a macro creating a new syntax that doesn't conform to the rest of the language. Lisp does't have a true switch statement. Cond, case, et al are macros that generate nested if statements. Since macros are compile time, the compiled code is the same as if you had written the expanded version by hand.

from alive.

cooleynal avatar cooleynal commented on July 19, 2024

I swear recreated the fault about ten times before posting. Reevaluated the file a few times to (so i thought) Unfortunately I can not recreate it now. Feel free to close me.

How did you get so good at all the programming languages?

I see lambda come up a lot. I used lambda expressions in java for anonymous classes and starting threads. Is this anything close to a calling a lamda here?

from alive.

nobody-famous avatar nobody-famous commented on July 19, 2024

Eventually you realize that the languages are mostly the same, so going from one to the other isn't that different. They each have their features that make them unique, but that's generally a small percentage of what you need to use the language.

I should've used a different term than lambda. A lambda is an anonymous function, meaning it's not bound to any name. When a function takes another function as a parameter, there needs to be some way to call it. With other languages, you put parentheses after it. If you have an argument foo, then foo() will treat it as a function and try to call it. Lisp doesn't have that sort of syntax so funcall is used instead.

In your example, you could replace #'plusp with (lambda (item) ...) and have it return t or nil based on whatever criteria. That way you could filter the list however you want.

from alive.

nobody-famous avatar nobody-famous commented on July 19, 2024

I think I figured out what's going on with the disconnect. If there's a non-ASCII character after the pound sign, swank is bailing out. It's going to the debugger in Emacs, so I'm going to try to figure out what it's doing differently.

from alive.

nobody-famous avatar nobody-famous commented on July 19, 2024

Looks like I wasn't UTF-8 encoding the strings. Should have a fix up tomorrow, or Monday at the latest.

from alive.

cooleynal avatar cooleynal commented on July 19, 2024

Oh dont get me wrong, i did throw a few errors with copying and pasting and use of ' (the bad one), this was different for sure.

Thanks, highly appreciated.

from alive.

nobody-famous avatar nobody-famous commented on July 19, 2024

I put a new version up with the UTF-8 fix. If you still see it dropping connections, reopen this one or open a new one.

from alive.

cooleynal avatar cooleynal commented on July 19, 2024

You are the embodiment of a greek god.

from alive.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.