{"id":47918952,"url":"https://github.com/samth/racket-send-exp","last_synced_at":"2026-04-04T05:50:20.141Z","repository":{"id":22775725,"uuid":"26121773","full_name":"samth/racket-send-exp","owner":"samth","description":"Terse syntax for object-oriented message sending","archived":false,"fork":false,"pushed_at":"2014-11-03T14:21:34.000Z","size":104,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2026-03-01T22:52:35.802Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":null,"has_issues":false,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":"tonyg/racket-send-exp","license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/samth.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2014-11-03T14:21:11.000Z","updated_at":"2014-10-26T15:54:25.000Z","dependencies_parsed_at":null,"dependency_job_id":null,"html_url":"https://github.com/samth/racket-send-exp","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/samth/racket-send-exp","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/samth%2Fracket-send-exp","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/samth%2Fracket-send-exp/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/samth%2Fracket-send-exp/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/samth%2Fracket-send-exp/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/samth","download_url":"https://codeload.github.com/samth/racket-send-exp/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/samth%2Fracket-send-exp/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":31389391,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-04-04T04:26:24.776Z","status":"ssl_error","status_checked_at":"2026-04-04T04:23:34.147Z","response_time":60,"last_error":"SSL_read: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2026-04-04T05:50:19.468Z","updated_at":"2026-04-04T05:50:20.109Z","avatar_url":"https://github.com/samth.png","language":null,"funding_links":[],"categories":[],"sub_categories":[],"readme":"# Convenient OO message sending for Racket\n\n## Invoking methods\n\nIn Racket, invoking a message `foo` on an object `bar` is done with\n\n```racket\n #lang racket\n ...\n (send bar foo arg1 arg2 ...)\n```\n\nTo make this a little more convenient, prefix your language\nspecification with `send-exp`, and use curly-braces instead:\n\n```racket\n #lang send-exp racket\n ...\n {foo bar arg1 arg2 ...}\n```\n\nNote that the selector comes *first*, with the receiver argument\ncoming *second*.\n\n## Defining methods\n\nIn addition, using `#lang send-exp ...` adds new syntax for defining\nmethods in a class. In addition to the normal ways of defining a\nmethod, you can also use `(define {method self arg ...} ...)` and\n`(define/override {method self arg ...} ...)`:\n\n```racket\n #lang send-exp racket\n ...\n (class object%\n \t...\n \t(define {foo self arg1 arg2 ...}\n \t\t...))\n```\n\nThe syntax\n\n```racket\n (define {selector receiver arg ...) body ...)\n```\n\nis equivalent to\n\n```racket\n (define/public (selector arg ...)\n \t(let ((receiver this))\n \t\tbody ...))\n\n```\n\nand `define/override` with curly-braces is analogously equivalent to a\nuse of the underlying `define/override` syntax.\n\n## Abstracting over method calls\n\nIn addition to the above, you can use `{method}` anywhere you would\nuse `(lambda (receiver) {method receiver})`. This only works for unary\nmethods at present.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsamth%2Fracket-send-exp","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fsamth%2Fracket-send-exp","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsamth%2Fracket-send-exp/lists"}