Giter Club home page Giter Club logo

Comments (4)

GoogleCodeExporter avatar GoogleCodeExporter commented on May 28, 2024

Original comment by [email protected] on 29 Mar 2007 at 7:00

  • Added labels: Type-Enhancement
  • Removed labels: Type-Defect

from muse.

GoogleCodeExporter avatar GoogleCodeExporter commented on May 28, 2024
The (define (f a b) ..) form is supported since v234 of trunk.

Original comment by [email protected] on 30 Mar 2007 at 5:08

from muse.

GoogleCodeExporter avatar GoogleCodeExporter commented on May 28, 2024
Call a lambda a lambda! muSE uses the symbol "fn" to mean what is referred to as
"lambda" in standard Scheme. This is 'cos muSE is used by people who might be 
scared
away if they see too many "lambda" expressions floating around ... but they
understand functions (thanks to JavaScript) and can easily read "fn" as an
abbreviation of "function". 

That said, only allowing "fn" breaks code compatibility. So now, with this 
change,
both "fn" and "lambda" can be used.

(Addition made in version 263)

Original comment by [email protected] on 10 Jun 2007 at 8:08

from muse.

GoogleCodeExporter avatar GoogleCodeExporter commented on May 28, 2024
A bit more about comment 2 - the standard define form.

As previously stated, muSE now supports the usual Scheme define construct for
function definition. So you can do -
  (define (f a b) body...) instead of (define f (fn (a b) body...))
  (define ((f a) b) ...) instead of (define f (fn (a) (fn (b) body...)))
etc.

Such normal constructs come with full pattern matching bind support, so that 
you can
deconstruct lists, match against constants, place guards, etc. The pattern 
matching
part of the function specification using define does not fit within the scope 
of what
is expected of Scheme.

Original comment by [email protected] on 10 Jun 2007 at 8:17

from muse.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.