tiflolinux.org - GNU Social
  • Login

Bienvenido

  • Public

    • Public
    • Network
    • Groups
    • Popular
    • People

Conversation

Notices

  1. .:Ninjatrappeur:. (ninjatrappeur@social.alternativebit.fr)'s status on Friday, 06-May-2022 12:36:24 CEST .:Ninjatrappeur:. .:Ninjatrappeur:.

    I know there are some Elips gurus around here.

    I’m confused by the following behaviour, could anybody explain to me what’s happening:

    (setq test 'test) test (eq test 'test) t (setq test2 '(alist . 'test)) (alist quote test) (cdr test2) 'test (eq (cdr test2) 'test) nil

    ^ WTF? How come this last result is not t?

    I experience the same behaviour regardless of the equality operator used (eq or equal)

    In conversation Friday, 06-May-2022 12:36:24 CEST from social.alternativebit.fr permalink
    • .:Ninjatrappeur:. (ninjatrappeur@social.alternativebit.fr)'s status on Friday, 06-May-2022 12:36:24 CEST .:Ninjatrappeur:. .:Ninjatrappeur:.
      in reply to
      ^ Solved. You don't need to quote stuff in a alist.

      IE. setting

      ```
      (setq test2 '(alist . test))
      ```

      Solves the issue.
      In conversation Friday, 06-May-2022 12:36:24 CEST permalink
    • .:Ninjatrappeur:. (ninjatrappeur@social.alternativebit.fr)'s status on Friday, 06-May-2022 12:42:12 CEST .:Ninjatrappeur:. .:Ninjatrappeur:.
      • Ekaitz Zárraga 👹
      @ekaitz_zarraga Dammit you're right!

      It's not the first time I'm getting bit by that! For some reason, I always forget to think in terms of AST when quoting stuff ><

      Backquote + coma it is here :P

      Thanks!
      In conversation Friday, 06-May-2022 12:42:12 CEST permalink
    • .:Ninjatrappeur:. (ninjatrappeur@social.alternativebit.fr)'s status on Friday, 06-May-2022 12:47:53 CEST .:Ninjatrappeur:. .:Ninjatrappeur:.
      • Ekaitz Zárraga 👹
      @ekaitz_zarraga That's helpful, thanks!
      In conversation Friday, 06-May-2022 12:47:53 CEST permalink

Feeds

  • Activity Streams
  • RSS 2.0
  • Atom
  • Help
  • About
  • FAQ
  • TOS
  • Privacy
  • Source
  • Version
  • Contact

tiflolinux.org - GNU Social is a social network, courtesy of tiflolinux.org. It runs on GNU social, version 2.0.1-beta0, available under the GNU Affero General Public License.

Creative Commons Attribution 3.0 All tiflolinux.org - GNU Social content and data are available under the Creative Commons Attribution 3.0 license.