-
Notifications
You must be signed in to change notification settings - Fork 372
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
cons doesn't always promote lists to HyObjects #568
Comments
This looks peculiar and I'm not sure what to think of it.
When assigning a dictionary directly, the type of it is "dict". When doing it via What kind of usage are you thinking of for this? What is the reason you would like to use HyDict instead of regular dictionaries? |
I have no need for a HyDict. I don't know about HyDict, but after reading your response, maybe the better bug would be: Hy casts |
That sounds like a bug to me. |
This is the behavior that I intended when I wrote cons cells. The rationale behind it is that the I now notice that that behavior is broken too. When the cdr of the cons cell is an instance of a list, the If the whole wrapping behavior is deemed to be a bug, it can be fixed by dropping all the |
To further my point: In common lisp, |
QUOTE merely returns its argument unevaluated. `(1 . 2) Is just a reader macro that expands to (QUOTE (1 . 2)) Calling (cons 1 2) is calling a function called, CONS. It has completely different behaviour than QUOTE and is not equivalent. On May 27, 2014, at 7:56 PM, Nicolas Dandrimont [email protected] wrote:
|
Did #1314 fix this one? |
Honestly, your guess is as good as mine. Cons cells are a part of the language I've yet to touch. |
The cons is because I'm not sure how to get/construct a HyDict otherwise
The text was updated successfully, but these errors were encountered: