Hacker News new | past | comments | ask | show | jobs | submit login

See also: Racket's 2d syntax library:

  #lang 2d racket
  (require 2d/match)
   
  (define (subtype? a b)
    #2dmatch
    ╔══════════╦══════════╦═══════╦══════════╗
    ║   a  b   ║ 'Integer ║ 'Real ║ 'Complex ║
    ╠══════════╬══════════╩═══════╩══════════╣
    ║ 'Integer ║             #t              ║
    ╠══════════╬══════════╗                  ║
    ║ 'Real    ║          ║                  ║
    ╠══════════╣          ╚═══════╗          ║
    ║ 'Complex ║        #f        ║          ║
    ╚══════════╩══════════════════╩══════════╝)
https://docs.racket-lang.org/2d/index.html



That's pretty cool! I've never seen a programming language that accepts ASCII art as valid code.


there are a few... asciidots for instance. the racket library above actually has (basic) editor support in dr racket though




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: