Skip to content
0
  • Home
  • Piero Bosio
  • Blog
  • World
  • Fediverso
  • News
  • Categories
  • Old Web Site
  • Recent
  • Popular
  • Tags
  • Users
  • Home
  • Piero Bosio
  • Blog
  • World
  • Fediverso
  • News
  • Categories
  • Old Web Site
  • Recent
  • Popular
  • Tags
  • Users
Skins
  • Light
  • Brite
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse

Piero Bosio Social Web Site Personale Logo Fediverso

Social Forum federato con il resto del mondo. Non contano le istanze, contano le persone
akkartik@merveilles.townundefined

Kartik Agaram

@akkartik@merveilles.town
About
Posts
5
Topics
0
Shares
0
Groups
0
Followers
0
Following
0

View Original

Posts

Recent Best Controversial

  • So for a long time I found LISP elegant but I found the syntax infuriating.
    akkartik@merveilles.townundefined akkartik@merveilles.town

    @SpindleyQ @mcc I've been annoyed by the lack of keywords in Lisp conditionals for.. (https://github.com/akkartik/wart/commit/c2e6d0c6d3) almost 14 years. Indentation should either mean "code that also runs" or "code that sometimes runs". When it can be either in a single stanza the result is shit.

    Uncategorized

  • So for a long time I found LISP elegant but I found the syntax infuriating.
    akkartik@merveilles.townundefined akkartik@merveilles.town

    @mcc I basically got rid of cond because the `((` pattern seemed to require new delimiters. So instead `if` is multi branch as you can see in fizzbuzz.

    My approach was to keep it memorable by minimizing delimiters. There are only parens, just like in regular Lisp. You can just avoid inserting parens sometimes, that's it. (And then infix arithmetic and $ for implicit gensyms 😄 I should create a version with just the paren insertion rules.)

    I used the same approach as you for single word lines. No parens around them, but no error either.

    Uncategorized

  • So for a long time I found LISP elegant but I found the syntax infuriating.
    akkartik@merveilles.townundefined akkartik@merveilles.town

    @mcc cond is a particularly challenging form I never managed to come up with a clean formatting for.

    (You can see examples including fizzbuzz of my whitespace sensitive Lisp at https://rosettacode.org/wiki/Category:Wart)

    Uncategorized

  • So for a long time I found LISP elegant but I found the syntax infuriating.
    akkartik@merveilles.townundefined akkartik@merveilles.town

    @mcc Oh, no if/while wrap in lambda not just parens.

    Uncategorized

  • So for a long time I found LISP elegant but I found the syntax infuriating.
    akkartik@merveilles.townundefined akkartik@merveilles.town

    @mcc It looks like everything between print and sp gets wrapped in one set of parens? How does the reader decide when to insert the ')'?

    Does a single word on a line get wrapped?

    Looks like you wrap your if/while bodies in an extra set of parens than conventional Lisp, is that right?

    Uncategorized
  • 1 / 1
  • Login

  • Login or register to search.
  • First post
    Last post