GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — GitHub - qerub/defstar: [Clojure] Experiment in macrology / Alternative definition form based on Racket's

BranchesTags
Open more actions menu

Latest commit

 

History

4 Commits
4 Commits

Folders and files

NameName
Last commit message
Last commit date
src/defstar
src/defstar
 
 
test/defstar
test/defstar
 
 
.gitignore
.gitignore
 
 
LICENSE
LICENSE
 
 
README.clj
README.clj
 
 
project.clj
project.clj
 
 

Repository files navigation

;; def*                  (pronounced defstar)
;;
;; An experiment in macrology and in an
;; alternative definition form for Clojure
;; based on Racket's define
;;
;; Not to be confused with
;; https://bitbucket.org/eeeickythump/defstar
;;
;; - - - - - - - - - - - - - - - - - - - - - -

(use 'defstar.core)

;; It can define anything:

(def* n 42)

;; It can define functions:

(def* (f x) (+ x n))

;; It can define curried functions:

(def* ((adder x) y) (+ x y))

((adder 1) 2) ; => 3

;; It supports local definitions:

(def* (f x)
  (def n 42)
  (* n x))

(def* (f x)
  (def* (a x) (+ x 2))
  (def* (b x) (* x 2))
  (->> x a b))

;; - - - - - - - - - - - - - - - - - - - - - -
;;
;; Copyright (c) 2014 Christoffer Sawicki

About

[Clojure] Experiment in macrology / Alternative definition form based on Racket's

Resources

Readme
EPL-1.0 license
Activity

Stars

2 stars

Watchers

1 watching

Forks

0 forks
Report repository

Releases

Packages

Contributors

Languages

You are visitor 01402775 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.