Comments (8)
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.
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.
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.
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.
Looks like I wasn't UTF-8 encoding the strings. Should have a fix up tomorrow, or Monday at the latest.
from alive.
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.
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.
You are the embodiment of a greek god.
from alive.
Related Issues (20)
- How to suppress warnings HOT 2
- TIME macro not working HOT 1
- lsp-server crashes on drakma http request HOT 4
- SBCL error: Heap exhausted during garbage collection HOT 13
- Infinite loops break extension HOT 1
- Can't start on MacOS HOT 2
- Features like "retry" are not working in interactive debugger (windows) HOT 1
- function name does not get syntax highlighting and jump to definition not working HOT 3
- syntax highlighting for `+variable-name+` HOT 2
- (in-package :foo) not honored HOT 2
- Suggestion: Make package display tree more nested
- Why chose the language identifier `lisp` over `commonlisp` HOT 2
- Suggestions: Breakpoints HOT 2
- Switch to REPL without using the mouse HOT 4
- upload extension to the Open VSX registry HOT 1
- Feature Request: Support for Cross-referencing HOT 1
- Feature Request: Condition/restart shortcut
- All 4 quicklisp pre-reqs installed, but no REPL loading up and `Alive LSP` log says `Component #:USOCKET not found` HOT 2
- Suggestion: allow hover tips for `#'my-function` to bring up what they already show with `(my-function)`
- 5am unable to find any tests under Alive (vs-code extension).
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from alive.