Comments (4)
Original comment by [email protected]
on 29 Mar 2007 at 7:00
- Added labels: Type-Enhancement
- Removed labels: Type-Defect
from muse.
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.
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.
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)
- Byte array read syntax is inconsistent with standard scheme for no reason. HOT 1
- open-file function is broken for file output HOT 2
- Resuming a raised condition does not work correctly if condition can be re-raised. HOT 1
- Problem with "apply" and tail call elimination HOT 1
- Tail call elimination support wanted. HOT 1
- sort and sort! functions are not stack friendly HOT 1
- (dup object) deep duplication function blows the stack for large lists. HOT 1
- muSE occasionally crashes and finds an invalid cell referenced from the stack HOT 1
- Guarded patterns don't fail when the guard's pattern itself doesn't match. HOT 2
- Name change funcspec -> datafn HOT 2
- Eliminate build warnings HOT 1
- Missing reverse and reverse! functions. HOT 1
- muSE broken on MacOSX Intel HOT 3
- Exception mechanism needs to be used by builtin functions HOT 3
- Segmentation fault HOT 10
- muSE r496 fails to compile on linux HOT 6
- No 64 bit support HOT 3
- Objective C support not entirely controlled by MUSE_OBJC_SUPPORT flag HOT 2
- Long pending a binary release.
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from muse.