The Artima Developer Community
Sponsored Link

Agile Buzz Forum
Smalltalk for Specific Domains

0 replies on 1 page.

Welcome Guest
  Sign In

Go back to the topic listing  Back to Topic List Click to reply to this topic  Reply to this Topic Click to search messages in this forum  Search Forum Click for a threaded view of the topic  Threaded View   
Previous Topic   Next Topic
Flat View: This topic has 0 replies on 1 page
James Robertson

Posts: 29924
Nickname: jarober61
Registered: Jun, 2003

David Buck, Smalltalker at large
Smalltalk for Specific Domains Posted: Feb 13, 2004 4:16 PM
Reply to this message Reply

This post originated from an RSS feed registered with Agile Buzz by James Robertson.
Original Post: Smalltalk for Specific Domains
Feed Title: Richard Demers Blog
Feed URL: http://www.cincomsmalltalk.com/rssBlog/rademers-rss.xml
Feed Description: Richard Demers on Smalltalk
Latest Agile Buzz Posts
Latest Agile Buzz Posts by James Robertson
Latest Posts From Richard Demers Blog

Advertisement

Smalltalk for Specific Domains

Jim Robertson comments on a discussion of Domain Specific Languages by Martin Fowler. I believe Smalltalk support for DSLs is a good argument for Smalltalk Evolution.

One of the beauties of Smalltalk, besides its elegant simplicity, is the ease with which the language can be extended by any programmer. New control structures, new data structures -- define your own -- Smalltalk's metalanguage facilities make it easy. But it could be easier still. Some minor syntax changes could make it possible to define grammars more tailored to various domains. This is one of the ways in which I hope Smalltalk will evolve.

Here is an idea I read on comp.lang.smalltalk (sorry I don't remember the author). Today if you want to support variations on a keyword message -- which is fairly common -- you need to define methods for each variation, most of which simply call the most complete variation. For example, a:b:c: and a:b: and a:c: and a:c:b: and etc.

What if it were possible for some of the arguments of a keyword message to take default values -- without being specified in a message? Or if the order of keywords could vary? Or if keyword aliases could be used?

I'm not saying this is a change that absolutely should be made to Smalltalk, just that it is one that should be seriously considered - and have a chance at becoming part of the base language.

Read: Smalltalk for Specific Domains

Topic: Top-Down or Bottom-Up Previous Topic   Next Topic Topic: Someone has to be the boss

Sponsored Links



Google
  Web Artima.com   

Copyright © 1996-2019 Artima, Inc. All Rights Reserved. - Privacy Policy - Terms of Use